cppc_get_desired_perf(9)
β¨ cppc_get_desired_perf(9) β¨
okay so bestie, welcome to the Kernel API Manual π«Ά β this one's a lil function called cppc_get_desired_perf and honestly? it does exactly what it says on the tin: it gets you the desired performance register value. no cap. π
πΈ NAME πΈ
cppc_get_desired_perf β literally just Get the desired performance register value. that's the whole vibe π
β¨ SYNOPSIS β¨
int cppc_get_desired_perf (int cpunum , u64 *desired_perf );
π¦ ARGUMENTS π¦
bestie there are exactly two (2) things you gotta hand over, and here they are:
cpunumβ the CPU you wanna pull the desired performance from π like, which CPU, be specific.desired_perfβ the return address π― this is where the good stuff lands.
π RETURN π
here's the vibe check on the return value, pay attention fr fr:
0means success, slay β¨-EOPNOTSUPPmeans it's_CPCrevision 4 or later π that's the "not supported, babe" one- and any other negative
errnomeans something else went sideways π
π SEE ALSO π
okay this is the girlypop reading list β the whole friend group of related functions lives in the kernel file ./drivers/acpi/cppc_acpi.c, and here's everyone invited to the group chat π:
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_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_set_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)
ngl that's a long list but every single one of them earned their spot π don't skip 'em.
and that's the whole page, bestie!! π§ this little gem lives under ./drivers/acpi in the Kernel API Manual, dated October 2026 β bye, ily, go read your registers πππ
π¦ 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