cpuidle_switch_governor(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ’… 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 with cpuidle_lock acquired. not optional. not a vibe suggestion. cpuidle_lock is 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 πŸ¦‹


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