cpufreq_update_policy(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ’… cpufreq_update_policy β€” Kernel API Manual ✨

okay so bestie, welcome to cpufreq_update_policy(9), straight outta the Kernel API Manual. this one's a little function with main character energy β€” she doesn't create policies, she just rolls up and re-evaluates the one you already got. iconique. πŸŽ€


✨ NAME ✨

cpufreq_update_policy β€” Re-evaluate an existing cpufreq policy. no cap, that's literally her whole job. πŸ¦‹


🌸 SYNOPSIS 🌸

void cpufreq_update_policy (unsigned int cpu );

yep, that's the whole signature. void return, one unsigned int argument, in and out, periodt. πŸ’…


πŸŽ€ ARGUMENTS πŸŽ€

  • cpu β€” the CPU whose policy you want to re-evaluate. that's it. that's the whole argument. she just needs to know which CPU we're talking about and she handles the rest 🫢

πŸ’– DESCRIPTION πŸ’–

okay so here's the tea β˜• β€” cpufreq_update_policy updates the current frequency for the cpufreq policy of cpu, and then it uses cpufreq_set_policy to re-apply the min and max limits. πŸ”₯

and the way that cpufreq_set_policy re-applies those limits? that's what kicks off the whole cascade, bestie:

  • it triggers the evaluation of policy notifiers, and
  • it triggers the cpufreq driver's ->verify callback for the policy in question,

among other things. so yeah, one call, lots of downstream vibes. she's giving "small function, big ripple effect" 🌈✨


πŸ¦‹ SEE ALSO πŸ¦‹

all her friends!! the whole cpufreq friend group, plus the kernel file they all live in πŸ’œ

Kernel file ./drivers/cpufreq/cpufreq.c:


ok that's the whole page!! go re-evaluate some policies, bestie, you got this πŸ’ͺ✨

this lil gem lives in ./drivers/cpufreq, and the page itself is dated October 2026 β€” so yeah, she's from the future, she's fresh, she's iconic πŸ‘‘πŸ’€ see you in the next manpage, mwah πŸ“πŸ§š

πŸ“¦ where this page comes from