STRUCT PSTATE_DATA(9)
π struct pstate_data(9) π
okay bestie, welcome to the Kernel API Manual glow-up β¨ this one's all about struct pstate_data, and it's giving "per-CPU P-state lore" in the best way possible π
β¨ NAME β¨
struct pstate_data β literally the place where P state data is stored, no cap π
π¦ SYNOPSIS π¦
here's the struct in all its iconic glory, copy it exactly bestie:
struct pstate_data {
int current_pstate;
int min_pstate;
int max_pstate;
int max_pstate_physical;
int perf_ctl_scaling;
int scaling;
int turbo_pstate;
unsigned int min_freq;
unsigned int max_freq;
unsigned int turbo_freq;
};
π Members π
current_pstateβ the current requested P state, aka the main character of the moment πmin_pstateβ the minimum P state this platform can even do, the floor bestie π«Άmax_pstateβ the maximum P state this platform can do, the ceiling β¨max_pstate_physicalβ this is the physical max P state for a processor π and yes, it can be higher thanmax_pstate, becausemax_pstatecan be limited by platform thermal design power limits β thermal said "not today" π‘οΈperf_ctl_scalingβ thePERF_CTLP-state to frequency scaling factor, math but make it slay π₯scalingβ the scaling factor between performance and frequency, the vibe check between the two βοΈturbo_pstateβ the max Turbo P state possible for this platform, zoom zoom ποΈmin_freqβ themin_pstatefrequency in cpufreq units, frequency but tiny πmax_freqβ themax_pstatefrequency in cpufreq units, frequency but big πturbo_freqβ theturbo_pstatefrequency in cpufreq units, frequency but turbo-charged β‘
πΈ Description πΈ
so what does this struct actually do? it stores the per cpu model P state limits and the current P state. that's it, that's the tea β β per-CPU model limits plus the current state, all cozy in one struct π
π₯ SEE ALSO π₯
- Kernel file
./drivers/cpufreq/intel_pstate.c struct sample(9)struct vid_data(9)struct global_params(9)struct cpudata(9)struct pstate_funcs(9)
bestie if you're touching this struct, you're already in the cpufreq deep end β hydrate and read the whole file, fr fr ππ
kisses and good vibes from the ./drivers/cpufreq girlies π«Άβ¨ this page is brought to you by the Kernel API Manual, dated October 2026, and yes it's still struct pstate_data(9) β 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