longrun_determine_freqs(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

🌸 NAME 🌸

okay so bestie, welcome to longrun_determine_freqs(9) from the Kernel API Manual β€” and the whole vibe is that it determines the lowest and highest possible core frequency. iconic little frequency detective behavior, no cap πŸ’–


✨ SYNOPSIS ✨

int longrun_determine_freqs (unsigned int *low_freq , unsigned int
*high_freq );

πŸŽ€ ARGUMENTS πŸŽ€

  • low_freq β€” an int to put the lowest frequency into 🫢
  • high_freq β€” an int to put the highest frequency into ✨

πŸ’… DESCRIPTION πŸ’…

So like, this function determines the lowest and highest possible core frequencies on this CPU. lowkey essential stuff.

It’s necessary to calculate the performance percentage according to TMTA rules, and the formula is giving very much:

performance_pctg = (target_freq - low_freq)/(high_freq - low_freq)

fr fr, that’s the whole point β€” you need the low and high ends so the percentage math can actually happen. periodt πŸ’œ


πŸ”₯ SEE ALSO πŸ”₯


mwah πŸ’‹ this lil page lives under ./drivers/cpufreq and is dated October 2026 β€” slay and goodbye, bestie πŸ¦‹

πŸ“¦ where this page comes from