cpufreq_scale(9)
π cpufreq_scale(9) π
okay so this one is straight out of the Kernel API Manual, and it's literally the math bestie you call when the numbers get big. π«Ά
π NAME π
cpufreq_scale β the "old * mult / div" calculation for large values, and yes it's (32-bit-arch safe) β¨
β¨ SYNOPSIS β¨
unsigned long cpufreq_scale (unsigned long old , u_int div , u_int mult );
π§ ARGUMENTS π§
oldβ the old value, periodt πdivβ the divisor, aka the number doing the dividing πmultβ the multiplier, aka the number doing the multiplying π₯
π₯ DESCRIPTION π₯
The whole vibe is this formula, no cap:
new = old * mult / div
That's it. That's the main character energy. π
π SEE ALSO π
- Kernel file
./include/linux/cpufreq.hπ cpufreq_for_each_efficient_entry_idx(9)π¦cpufreq_table_set_inefficient(9)πΈ
mwah π this little page lives at ./include/linux, is dated October 2026, and is still serving cpufreq_scale(9) realness. πβ¨
π¦ 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