cppc_get_perf(9)
π cppc_get_perf(9) β like, the Kernel API Manual page you actually wanna read
okay so bestie, welcome to cppc_get_perf(9) from the Kernel API Manual β¨ this is the little function that goes and grabs a CPU's performance controls for you, and I'm gonna walk you through it like we're texting at 2am π«Ά
π NAME π
cppc_get_perf β literally just get a CPU's performance controls. that's the whole vibe. π«
πΈ SYNOPSIS πΈ
int cppc_get_perf (int cpu , struct cppc_perf_ctrls *perf_ctrls );
yes queen, that's the exact signature, don't @ me π
π¦ ARGUMENTS π¦
cpuβ the CPU whose performance controls you're trying to get π like, which one do you want, bestie? pick one.perf_ctrlsβ a ptr tocppc_perf_ctrls. seecppc_acpi.hfor the deets π iykyk.
β¨ DESCRIPTION β¨
so here's the tea π Desired Performance is not read β it's just returned as 0. that's it. that's the whole description. no cap, that's literally the fact. π
π₯ RETURN π₯
0for success, withperf_ctrlsfilled in π slay.-ERRNOotherwise π (that's the error case, obviously).
π SEE ALSO π
the whole friend group, honestly π β and the kernel file ./drivers/acpi/cppc_acpi.c is the main character here:
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_set_auto_act_window(9)cppc_get_auto_sel(9)cppc_set_auto_sel(9)cppc_set_enable(9)cppc_set_perf(9)cppc_get_perf_limited(9)cppc_set_perf_limited(9)cppc_get_transition_latency(9)
go read them, bestie, they're iconic π
ngl if you're here for the desired-perf value, it's 0. that's not a bug, that's the documented behaviour. periodt. π
okay that's the whole page!! mwah π this came from the ./drivers/acpi source tree, dated October 2026, and it's cppc_get_perf(9) β go forth and get those performance controls, queen πβ¨
π¦ 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