tmigr_cpu_deactivate(9)
π NAME π
tmigr_cpu_deactivate β puts the current CPU into inactive state, bestie. This page is from the Kernel API Manual, and itβs giving βsmall function, very specific jobβ energy π
.
β¨ SYNOPSIS β¨
u64 tmigr_cpu_deactivate (u64 nextexp );
π ARGUMENTS π
nextexpβ the next global timer expiry of the current CPU. Thatβs the value youβre passing in, okay? π
πΈ DESCRIPTION πΈ
Okay so real talk: this function must be called with interrupts disabled. Not βtry your best,β not βif you feel like itβ β interrupts disabled, periodt. β οΈ
π¦ RETURN π¦
The return value is the next event expiry of the current CPU. But wait, thereβs a plot twist π«’: if this CPU is the top level migrator, or if the hierarchy is completely idle, then you get the next event expiry from the hierarchy instead. Thatβs it, thatβs the return vibe β¨.
π SEE ALSO π
Peep the kernel file ./kernel/time/timer_migration.c and these iconic friends π:
struct tmigr_walk(9)tmigr_cpu_activate(9)tmigr_handle_remote(9)tmigr_requires_handle_remote(9)tmigr_cpu_new_timer(9)tmigr_quick_check(9)tmigr_isolated_exclude_cpumask(9)
Byeeee from the ./kernel/time source corner, dated October 2026, on the tmigr_cpu_deactivate(9) page β slay and stay interrupt-safe ππ¦π«Ά
π¦ 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