cppc_perf_ctrs_in_pcc(9)
π cppc_perf_ctrs_in_pcc(9) β from the Kernel API Manual, bestie
Okay so picture this: you're deep in the kernel docs, section 9, and you land on cppc_perf_ctrs_in_pcc. Sounds scary? It's not. It's literally a vibe check for performance counters, and I'm gonna walk you through it π«Ά
β¨ NAME β¨
cppc_perf_ctrs_in_pcc β check if any perf counters are in a PCC region. That's it, that's the whole job. No cap π
πΈ SYNOPSIS πΈ
bool cppc_perf_ctrs_in_pcc (void );
Yes bestie, it returns a bool. Yes, she takes nothing. Iconic minimalism π
π ARGUMENTS π
voidβ no arguments. Zero. None. She doesn't want your parameters, she doesn't need your parameters, she's booked and busy being avoidπ
π DESCRIPTION π
So here's the tea π CPPC is super flexible about how CPU performance counters get accessed β like, there are options, it's giving choose-your-own-adventure. One of those choices is PCC regions, and the thing about PCC regions is they can have a high access latency π like, not fast. Not snappy. We're waiting.
That's exactly why this routine exists: it lets callers of cppc_get_perf_ctrs find out about that latency ahead of time, so nobody gets jump-scared by a slow read. It's the "hey bestie, just so you know before you commit" of kernel APIs πβ¨
π₯ RETURN π₯
trueβ if any of the counters are in PCC regions πfalseβ otherwise βοΈ
π¦ SEE ALSO π¦
Kernel file ./drivers/acpi/cppc_acpi.c β and honestly, the whole friend group:
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_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 the whole list is a mood, go read them, iykyk π
And that's the page!! Signing off from ./drivers/acpi, dated October 2026 β this section 9 page (cppc_perf_ctrs_in_pcc(9)) ate and left no crumbs. 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