Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux
1
fork

Configure Feed

Select the types of activity you want to include in your feed.

ACPI: CPPC: Rename EPP constants for clarity

Update EPP (Energy Performance Preference) constants for more clarity:

- Add CPPC_EPP_PERFORMANCE_PREF (0x00) for performance preference.

- Rename CPPC_ENERGY_PERF_MAX to CPPC_EPP_ENERGY_EFFICIENCY_PREF (0xFF)
for energy efficiency.

Signed-off-by: Sumit Gupta <sumitg@nvidia.com>
Reviewed-by: Lifeng Zheng <zhenglifeng1@huawei.com>
[ rjw: Changelog edits ]
Link: https://patch.msgid.link/20260120145623.2959636-4-sumitg@nvidia.com
Signed-off-by: Rafael J. Wysocki <rafael.j.wysocki@intel.com>

authored by

Sumit Gupta and committed by
Rafael J. Wysocki
83e2908c 7cb6f10c

+3 -2
+1 -1
drivers/acpi/cppc_acpi.c
··· 1609 1609 */ 1610 1610 int cppc_set_epp(int cpu, u64 epp_val) 1611 1611 { 1612 - if (epp_val > CPPC_ENERGY_PERF_MAX) 1612 + if (epp_val > CPPC_EPP_ENERGY_EFFICIENCY_PREF) 1613 1613 return -EINVAL; 1614 1614 1615 1615 return cppc_set_reg_val(cpu, ENERGY_PERF, epp_val);
+2 -1
include/acpi/cppc_acpi.h
··· 39 39 /* CPPC_AUTO_ACT_WINDOW_MAX_SIG is 127, so 128 and 129 will decay to 127 when writing */ 40 40 #define CPPC_AUTO_ACT_WINDOW_SIG_CARRY_THRESH 129 41 41 42 - #define CPPC_ENERGY_PERF_MAX (0xFF) 42 + #define CPPC_EPP_PERFORMANCE_PREF 0x00 43 + #define CPPC_EPP_ENERGY_EFFICIENCY_PREF 0xFF 43 44 44 45 /* Each register has the folowing format. */ 45 46 struct cpc_reg {