cpufreq_update_policy(9)
π 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
->verifycallback 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:
cpufreq_cpu_get(9)cpufreq_cpu_put(9)adjust_jiffies(9)cpufreq_notify_transition(9)cpufreq_enable_fast_switch(9)cpufreq_disable_fast_switch(9)cpufreq_driver_resolve_freq(9)cpufreq_parse_governor(9)cpufreq_add_dev(9)cpufreq_out_of_sync(9)cpufreq_quick_get(9)cpufreq_quick_get_max(9)cpufreq_get_hw_max_freq(9)cpufreq_get(9)cpufreq_suspend(9)cpufreq_resume(9)cpufreq_driver_test_flags(9)cpufreq_get_current_driver(9)cpufreq_get_driver_data(9)cpufreq_register_notifier(9)cpufreq_unregister_notifier(9)cpufreq_driver_fast_switch(9)cpufreq_driver_adjust_perf(9)cpufreq_driver_has_adjust_perf(9)cpufreq_update_pressure(9)cpufreq_set_policy(9)cpufreq_update_limits(9)cpufreq_register_driver(9)
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
- 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