do_disable_cpu_turbo(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ’… do_disable_cpu_turbo(9) πŸ’…

okay so this is a page straight out of the Kernel API Manual, and honestly? it's a tiny little icon and i'm obsessed. it's called do_disable_cpu_turbo and it is, bestie, exactly what it sounds like. let's get into it πŸŽ€


✨ NAME ✨

do_disable_cpu_turbo β€” the internal turbo disable function πŸŒ€

like, the internal one. the backstage one. the one that actually does the thing while everybody else takes the credit. main character energy but make it a kernel helper πŸ’…


✨ SYNOPSIS ✨

void do_disable_cpu_turbo (void *data );

that's the whole signature, no cap. returns void (so it gives you nothing back, and that's fine, we respect it) and takes one void * called data. 🫢


✨ ARGUMENTS ✨

  • data β€” unused πŸ™ˆ

literally. it's unused. it's giving "invited to the party but standing in the corner the whole time." we love a parameter that's just there for the vibe ✨


✨ DESCRIPTION ✨

so here's the tea πŸ“ β€” this is the internal function for actually updating MSRs. that's the real work, the behind-the-scenes moment, the whole reason this function exists.

the way that turbo works is: when we enable/disable turbo, we need to do it on each CPU. every single one. no skipping. no "eh, close enough." all of them, fr fr πŸ”₯

and this function? this is the one that gets called by on_each_cpu when needed. so on_each_cpu is the group chat that pings everybody, and do_disable_cpu_turbo is the message that actually lands. iconic behavior honestly πŸ‘‘


🌈 SEE ALSO 🌈

okay this list is LONG but every single one of these is required reading, so buckle up buttercup πŸ¦‹

Kernel file ./drivers/platform/x86/intel_ips.c, plus:

yeah that's twenty-one friends and a file path. read them all, i believe in you πŸ’–


πŸ’€ tiny disclaimer bestie: this is an internal function and it's reached via on_each_cpu, so don't go calling it like it's a public API and then act surprised. iykyk.

kay that's the whole page!! 🌸 this came to you from ./drivers/platform/x86, dated October 2026, and it's do_disable_cpu_turbo(9) forever and always. mwah, bye bestie πŸ§šπŸ’œ

πŸ“¦ where this page comes from