em_pd_get_efficient_state(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ’– 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:


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