Lines Matching defs:core

59 	struct spdk_scheduler_core_info *core;
63 core = &cores_info[i];
65 if (core->isolated) {
68 for (j = 0; j < core->threads_count; j++) {
69 fn(&core->thread_infos[j]);
75 prepare_to_sleep(uint32_t core)
84 rc = governor->set_core_freq_min(core);
86 SPDK_ERRLOG("could not set_core_freq_min(%d)\n", core);
91 prepare_to_wake(uint32_t core)
100 rc = governor->set_core_freq_max(core);
102 SPDK_ERRLOG("could not set_core_freq_max(%d)\n", core);
118 /* Don't modify stats if thread is already on that core. */
126 /* Adjust busy/idle from core as if thread was not present on it.
133 /* This core was so busy that we cannot assume all of busy_tsc
140 * move threads to this core during this scheduling
156 struct core_stats *core = &g_cores[core_id];
160 if (core->thread_count <= 1) {
164 busy = core->busy;
165 idle = core->idle;
186 /* Thread can always fit on the core it's currently on. */
231 /* Find a core that can fit the thread. */
243 /* Search for least busy core. */
256 /* Lower core id was found, move to consolidate threads on lowest core ids. */
259 /* When core is over the limit, any core id is better than current one. */
264 /* For cores over the limit, place the thread on least busy core
270 /* If no better core is found, remain on the same one. */
285 SPDK_ERRLOG("Failed to allocate memory for dynamic scheduler core stats.\n");
306 /* This thread is idle, move it to the main core. */
329 struct spdk_scheduler_core_info *core;
346 /* Distribute threads in two passes, to make sure updated core stats are considered on each pass.
347 * 1) Move all idle threads to main core. */
358 core = &cores_info[i];
361 core->interrupt_mode = true;
364 core->interrupt_mode = false;
379 /* Change main core frequency if needed */
383 SPDK_ERRLOG("setting default frequency for core %u failed\n", g_main_lcore);
388 SPDK_ERRLOG("increasing frequency for core %u failed\n", g_main_lcore);
393 SPDK_ERRLOG("lowering frequency for core %u failed\n", g_main_lcore);
429 SPDK_NOTICELOG("Setting scheduler core limit to %d\n", scheduler_opts.core_limit);
431 SPDK_NOTICELOG("Setting scheduler core busy to %d\n", scheduler_opts.core_busy);