get_capacity_ref_freq(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

okay so bestie, this is get_capacity_ref_freq(9) from the Kernel API Manual, and it's literally here to get the reference frequency that has been used to correlate frequency and compute capacity for a given cpufreq policy. We use the CPU managing it for the arch_scale_freq_ref() call in the function. slay. πŸ’…βœ¨

🌸 NAME 🌸

get_capacity_ref_freq β€” get the reference frequency that has been used to correlate frequency and compute capacity for a given cpufreq policy. We use the CPU managing it for the arch_scale_freq_ref() call in the function. no cap, that's the whole vibe. πŸ¦‹

✨ SYNOPSIS ✨

the signature is giving exactly this, character for character:

unsigned long get_capacity_ref_freq (struct cpufreq_policy *policy );

πŸŽ€ ARGUMENTS πŸŽ€

  • policy β€” the cpufreq policy of the CPU in question. that's it, that's the argument, and it's iconic. πŸ‘‘

πŸ’– RETURN πŸ’–

the reference CPU frequency to compute a capacity. periodt. 🫢

🌈 SEE ALSO 🌈

Kernel file ./kernel/sched/cpufreq_schedutil.c β€” and the besties it wants you to check out:


mwah πŸ’‹ this little page comes from source/version ./kernel/sched, dated October 2026 β€” get_capacity_ref_freq(9) signing off, and yes she ate. πŸ“πŸ§šπŸ’œ

πŸ“¦ where this page comes from