cppc_set_auto_act_window(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ’– cppc_set_auto_act_window πŸ’–

okay bestie, welcome to the Kernel API Manual, section 9 β€” yes we're in the kernel docs, yes it's giving big-brain energy, and yes you're gonna get it. this one's about writing to a register. a little register. a fancy little register. let's go πŸŽ€


✨ NAME ✨

cppc_set_auto_act_window β€” literally just writes the autonomous activity window register. that's the whole job. she's focused, she's employed, she slays πŸ’…


🌸 SYNOPSIS 🌸

int cppc_set_auto_act_window (int cpu , u64 auto_act_window );

returns an int, takes two args, no drama. πŸ¦‹


🧚 ARGUMENTS 🧚

  • cpu β€” the CPU you're writing the register on. like, which CPU, bestie. pick one. be specific πŸ‘‘
  • auto_act_window β€” the usec value you're writing into the autonomous activity window register. it's a u64, it's a usec value, it's the moment ✨

πŸ”₯ DESCRIPTION πŸ”₯

so according to ACPI 6.5, s8.4.6.1.6 (iykyk), the value you write to the autonomous activity window register isn't just one lil number β€” it's actually two parts glued together:

  • a 7 bits value that indicates the significand
  • a 3 bits value that indicates the exponent

that's it, that's the whole encoding. 7 + 3, a little math sandwich, no cap πŸ₯ͺπŸ’€


πŸ’œ SEE ALSO πŸ’œ

the whole friend group, fr fr β€” they all live in the kernel file ./drivers/acpi/cppc_acpi.c:

go read them all, bestie, they're literally iconic 🌈⭐


and that's the page!! πŸ’– shouting out ./drivers/acpi for keeping it real, and stamping it October 2026 like a lil time capsule πŸŽ€πŸ«Ά you understood the assignment, bestie β€” now go write that register the correct way, periodt πŸ”₯πŸ‘‘

πŸ“¦ where this page comes from