xen/cpufreq: rename cppc preset name to "XEN_SYSCTL_CPPC_SET_PRESET_ONDEMAND"

"ondemand" is more suitable to describe a preset in which epp value is set
with medium(CPPC_ENERGY_PERF_BALANCE), showing no preference over performance or
powersave, minimum with lowest and maximum with highest.

Signed-off-by: Penny Zheng <Penny.Zheng@amd.com>
Acked-by: Jan Beulich <jbeulich@suse.com>
This commit is contained in:
Penny Zheng authored and Jan Beulich committed 2025-07-17 08:57:16 +02:00
1 parent 5fe7098fc4
commit 81ce87fc5e
3 files changed
+4 -4

No files matched your search

+2 -2
View File
@@ -1447,9 +1447,9 @@ static int parse_cppc_opts(xc_set_cppc_para_t *set_cppc, int *cpuid,
set_cppc->set_params = XEN_SYSCTL_CPPC_SET_PRESET_PERFORMANCE;
i++;
}
else if ( strcasecmp(argv[i], "balance") == 0 )
else if ( strcasecmp(argv[i], "ondemand") == 0 )
{
set_cppc->set_params = XEN_SYSCTL_CPPC_SET_PRESET_BALANCE;
set_cppc->set_params = XEN_SYSCTL_CPPC_SET_PRESET_ONDEMAND;
i++;
}
+1 -1
View File
@@ -610,7 +610,7 @@ int set_hwp_para(struct cpufreq_policy *policy,
data->desired = 0;
break;
case XEN_SYSCTL_CPPC_SET_PRESET_BALANCE:
case XEN_SYSCTL_CPPC_SET_PRESET_ONDEMAND:
data->minimum = data->hw.lowest;
data->maximum = data->hw.highest;
data->activity_window = 0;
+1 -1
View File
@@ -430,7 +430,7 @@ struct xen_set_cppc_para {
#define XEN_SYSCTL_CPPC_SET_ACT_WINDOW (1U << 4)
#define XEN_SYSCTL_CPPC_SET_PRESET_MASK 0xf0000000U
#define XEN_SYSCTL_CPPC_SET_PRESET_NONE 0x00000000U
#define XEN_SYSCTL_CPPC_SET_PRESET_BALANCE 0x10000000U
#define XEN_SYSCTL_CPPC_SET_PRESET_ONDEMAND 0x10000000U
#define XEN_SYSCTL_CPPC_SET_PRESET_POWERSAVE 0x20000000U
#define XEN_SYSCTL_CPPC_SET_PRESET_PERFORMANCE 0x30000000U
#define XEN_SYSCTL_CPPC_SET_PARAM_MASK \
Reference in new issue
Block a user
Blocking a user prevents them from interacting with repositories, such as opening or commenting on pull requests or issues. Learn more about blocking a user.