cpuidle_switch_governor(9)
π cpuidle_switch_governor β changing the governor, bestie
okay so real talk, this page is living in the Kernel API Manual, section 9, and it's literally about swapping out your CPU idle governor. yes, the governor. the little guy deciding how your cores nap. iconic behavior honestly π«Ά
β¨ NAME β¨
cpuidle_switch_governor β changes the governor π«
like⦠that's it. that's the whole job. it changes the governor. no cap.
πΈ SYNOPSIS πΈ
int cpuidle_switch_governor (struct cpuidle_governor *gov );
π ARGUMENTS π
govβ the new target governor π this is the one you're switching to, the main character of the nap-time saga. but hear me: it must be called withcpuidle_lockacquired. not optional. not a vibe suggestion.cpuidle_lockis held before you call this, periodt π
β οΈ fr fr bestie, that lock caveat is the whole personality of this function. call it without cpuidle_lock and you're on your own β the manpage says must, and must means must π
π¦ SEE ALSO π¦
- the kernel file
./drivers/cpuidle/governor.cβ that's where the magic lives π cpuidle_find_governor(9)β the "wait, which governor do I even want" one πcpuidle_register_governor(9)β the "hey kernel, meet my new governor" one πcpuidle_governor_latency_req(9)β the latency-request one, iykyk β
aaaand that's the page π§ she's short, she's sweet, she's ./drivers/cpuidle coded, she's dated October 2026, and she belongs to the Kernel API Manual, section 9. mwah πβ¨ go hold that cpuidle_lock before you do anything cute.
π¦ 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