adjust_jiffies(9)
π adjust_jiffies β Kernel API Manual, section 9
okay so bestie, buckle up, we're going into the kernel's cpufreq corner and this one's a lil function with a big job π
πΈ NAME πΈ
adjust_jiffies β it adjusts the system loops_per_jiffy, that's the whole vibe β¨
π¦ SYNOPSIS π¦
void adjust_jiffies (unsigned long val , struct cpufreq_freqs *ci );
like, two args, no return value, she's a void girlie and she knows it π
π ARGUMENTS π
valβ this one has to be eitherCPUFREQ_PRECHANGEorCPUFREQ_POSTCHANGE. those are the only two moods she accepts, no cap. (and yes β the official docs literally write it as "CPUFREQ_PRECHANGEorCPUFREQ_POSTCHANGE", so pick one, don't get creative π)ciβ the frequency change info π« basically the little packet of details about the clock speed change that's happening.
β¨ DESCRIPTION β¨
so what she actually does: this function alters the system loops_per_jiffy for the clock speed change π₯ that's it, that's the job, and she does it.
BUT β and this is the important part, bestie, listen β note that loops_per_jiffy cannot be updated on SMP systems, because each CPU might be scaled differently π like, every core's out here living its own truth.
so use the arch per-CPU loops_per_jiffy value wherever possible. fr fr. that's the actual guidance, don't fight it π«Ά
π SEE ALSO π
kernel file ./drivers/cpufreq/cpufreq.c β and honestly the whole cpufreq friend group shows up here, so let's go down the list π
cpufreq_cpu_get(9)cpufreq_cpu_put(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_policy(9)cpufreq_update_limits(9)cpufreq_register_driver(9)
every single one, we don't skip the boring ones, that's not how we treat the friend group π
and that's the page!! source dir is ./drivers/cpufreq, and this lil beauty is dated October 2026 β adjust_jiffies(9), periodt π
β¨
π¦ 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