arch_scale_freq_capacity(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

✨ 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 🌈


and that's the whole page, bestie 🫢 source ./kernel/sched, dated October 2026. periodt πŸ’œ

πŸ“¦ where this page comes from