longrun_determine_freqs(9)
πΈ 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β anintto put the lowest frequency into π«Άhigh_freqβ anintto 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 π₯
- Kernel file
./drivers/cpufreq/longrun.c longrun_get_policy(9)longrun_set_policy(9)longrun_init(9)longrun_exit(9)
mwah π this lil page lives under ./drivers/cpufreq and is dated October 2026 β slay and goodbye, bestie π¦
π¦ 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