Lines Matching defs:core
33 calculate_busy_pct(struct spdk_scheduler_core_info *core)
37 total_tsc = core->current_busy_tsc + core->current_idle_tsc;
41 return core->current_busy_tsc * 100 / total_tsc;
54 struct spdk_scheduler_core_info *core = &ctx->cores[i];
55 uint32_t busy_pct = calculate_busy_pct(core);
64 struct spdk_scheduler_core_info *core;
76 core = &cores[i];
78 rc = governor->get_core_capabilities(core->lcore, &capabilities);
80 SPDK_ERRLOG("failed to get capabilities for core: %u\n", core->lcore);
84 busy_pct = calculate_busy_pct(core);
93 rc = governor->set_core_freq_min(core->lcore);
95 SPDK_ERRLOG("setting to minimal frequency for core %u failed\n", core->lcore);
98 rc = governor->core_freq_down(core->lcore);
100 SPDK_ERRLOG("lowering frequency for core %u failed\n", core->lcore);
103 rc = governor->set_core_freq_max(core->lcore);
105 SPDK_ERRLOG("setting to maximal frequency for core %u failed\n", core->lcore);
108 rc = governor->core_freq_up(core->lcore);
110 SPDK_ERRLOG("increasing frequency for core %u failed\n", core->lcore);