Skip to content
This repository was archived by the owner on Nov 8, 2023. It is now read-only.

Commit 8c6294c

Browse files
ptesarikrafaeljw
authored andcommitted
ACPI: CPPC: add sysfs entry for guaranteed performance
Expose the CPPC guaranteed performance as reported by the platform through GuaranteedPerformanceRegister. The current value is already read in cppc_get_perf_caps() and stored in struct cppc_perf_caps (to be used by the intel_pstate driver), so only the attribute itself needs to be defined. Signed-off-by: Petr Tesařík <ptesarik@suse.com> Signed-off-by: Rafael J. Wysocki <rafael.j.wysocki@intel.com>
1 parent 83a7eef commit 8c6294c

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

drivers/acpi/cppc_acpi.c

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -160,6 +160,7 @@ show_cppc_data(cppc_get_perf_caps, cppc_perf_caps, highest_perf);
160160
show_cppc_data(cppc_get_perf_caps, cppc_perf_caps, lowest_perf);
161161
show_cppc_data(cppc_get_perf_caps, cppc_perf_caps, nominal_perf);
162162
show_cppc_data(cppc_get_perf_caps, cppc_perf_caps, lowest_nonlinear_perf);
163+
show_cppc_data(cppc_get_perf_caps, cppc_perf_caps, guaranteed_perf);
163164
show_cppc_data(cppc_get_perf_caps, cppc_perf_caps, lowest_freq);
164165
show_cppc_data(cppc_get_perf_caps, cppc_perf_caps, nominal_freq);
165166

@@ -196,6 +197,7 @@ static struct attribute *cppc_attrs[] = {
196197
&highest_perf.attr,
197198
&lowest_perf.attr,
198199
&lowest_nonlinear_perf.attr,
200+
&guaranteed_perf.attr,
199201
&nominal_perf.attr,
200202
&nominal_freq.attr,
201203
&lowest_freq.attr,

0 commit comments

Comments
 (0)