cppc_set_auto_act_window(9)
π 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β theusecvalue you're writing into the autonomous activity window register. it's au64, 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:
acpi_get_psd_map(9)cpc_ffh_supported(9)cpc_supported_by_cpu(9)pcc_data_alloc(9)acpi_cppc_processor_probe(9)acpi_cppc_processor_exit(9)cpc_read_ffh(9)cpc_read_ffh_fb_ctrs(9)cpc_write_ffh(9)cppc_get_desired_perf(9)cppc_get_nominal_perf(9)cppc_get_highest_perf(9)cppc_get_epp_perf(9)cppc_get_perf_caps(9)cppc_perf_ctrs_in_pcc_cpu(9)cppc_perf_ctrs_in_pcc(9)cppc_get_perf_ctrs(9)cppc_set_epp(9)cppc_get_auto_act_window(9)cppc_get_auto_sel(9)cppc_set_auto_sel(9)cppc_set_enable(9)cppc_get_perf(9)cppc_set_perf(9)cppc_get_perf_limited(9)cppc_set_perf_limited(9)cppc_get_transition_latency(9)
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
- 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