em_pd_get_efficient_state(9)
π NAME β em_pd_get_efficient_state(9) π
okay so bestie, welcome to the Kernel API Manual page for em_pd_get_efficient_state(9). This one is literally about getting an efficient performance state from the EM. β¨
em_pd_get_efficient_state β Get an efficient performance state from the EM.
πΈ SYNOPSIS πΈ
int em_pd_get_efficient_state (struct em_perf_state *table , struct em_perf_domain *pd , unsigned long max_util );
β¨ ARGUMENTS β¨
tableβ List of performance states, in ascending order. Yep, ascending is the vibe. π¦pdβ performance domain for which this must be done.max_utilβ Max utilization to map with the EM.
π DESCRIPTION π
It is called from the scheduler code quite frequently and as a consequence doesn't implement any check. π
no checks, no cap β itβs getting called a lot from scheduler code, so it keeps things bare. π«Ά
π₯ RETURN π₯
An efficient performance state id, high enough to meet max_util requirement. π
π SEE ALSO π
Kernel file ./include/linux/energy_model.h:
struct em_perf_state(9)struct em_perf_table(9)struct em_perf_domain(9)em_cpu_energy(9)em_pd_nr_perf_states(9)em_perf_state_from_pd(9)
and thatβs the whole page, bestie π β source/version line says ./include/linux, dated October 2026, and it signs off with em_pd_get_efficient_state(9). slay. πβ¨
π¦ where this page comes from
- nixpkgs unstable: linux-manual 7.3.1
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash-1017 on : a language model's rewrite of the original, under its terms