arch_scale_freq_capacity(9)
β¨ NAME β¨
okay so this is the arch_scale_freq_capacity(9) page from the Kernel API Manual, and it does one job: get the frequency scale factor of a given CPU. bestie, that's the whole vibe π
πΈ SYNOPSIS πΈ
unsigned long arch_scale_freq_capacity (int cpu );
π ARGUMENTS π
cpuβ the CPU in question. like, the exact CPU you're asking about, no cap π
π¦ RETURN π¦
the frequency scale factor normalized against SCHED_CAPACITY_SCALE, i.e.
π DESCRIPTION π
the formula is literally right here:
f_curr ------ * SCHED_CAPACITY_SCALE f_max
the layout is a little quirky here, but every piece is exactly as written above πβ¨
π SEE ALSO π
- Kernel file
./kernel/sched/sched.h available_idle_cpu(9)highest_flag_domain(9)cpufreq_update_util(9)
and that's the whole page, bestie π«Ά source ./kernel/sched, dated October 2026. periodt π
π¦ 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