cpufreq_scale(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

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


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