mirror of
https://github.com/xen-project/xen.git
synced 2026-10-28 10:11:27 +01:00
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:
1 parent
5fe7098fc4
commit
81ce87fc5e
3 files changed
+4
-4
No files matched your search
+2
-2
@@ -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++;
|
||||
}
|
||||
|
||||
|
||||
@@ -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;
|
||||
|
||||
@@ -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 \
|
||||
|
||||