tick_nohz_update_jiffies(9)
β¨ NAME β¨
tick_nohz_update_jiffies(9) from the Kernel API Manual β literally here to update jiffies when idle got interrupted π
β¨
πΈ SYNOPSIS πΈ
void tick_nohz_update_jiffies (ktime_t now );
π ARGUMENTS π
nowβ the currentktime_t, bestie β°π«Ά
π¦ DESCRIPTION π¦
Okay so this one gets called from interrupt entry when the CPU was idle π΄β¨
So if the sched_tick was stopped on this CPU, we have to check whether jiffies must be updated. Otherwise an interrupt handler could use a stale jiffy value π β and that is not the vibe.
We do this unconditionally on any CPU, because we don't know whether the CPU that has the update task assigned is in a long sleep π΄π no cap, we're not out here guessing.
π₯ SEE ALSO π₯
Kernel file ./kernel/time/tick-sched.c plus these iconic functions, iykyk:
tick_nohz_next_event(9)tick_nohz_idle_stop_tick(9)tick_nohz_idle_enter(9)tick_nohz_irq_exit(9)tick_nohz_idle_got_tick(9)tick_nohz_get_next_hrtimer(9)tick_nohz_get_sleep_length(9)tick_nohz_get_idle_calls_cpu(9)tick_nohz_idle_exit(9)tick_nohz_switch_to_nohz(9)tick_setup_sched_timer(9)
And that's the whole page, bestie! Source/version is ./kernel/time and the date is October 2026, so this sign-off is giving tick_nohz_update_jiffies(9) with main character energy πππ
π¦ 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