Re: [PATCH v6 17/19] xen/cpufreq: introduce helper cpufreq_in_cppc_passive_mode()

2025-07-24 Thread Jan Beulich
On 11.07.2025 05:51, Penny Zheng wrote: > --- a/xen/drivers/acpi/pm-op.c > +++ b/xen/drivers/acpi/pm-op.c > @@ -152,7 +152,15 @@ static int get_cpufreq_para(struct xen_sysctl_pm_op *op) > else > strlcpy(op->u.get_para.scaling_driver, "Unknown", CPUFREQ_NAME_LEN); > > -ret = get_

[PATCH v6 17/19] xen/cpufreq: introduce helper cpufreq_in_cppc_passive_mode()

2025-07-10 Thread Penny Zheng
When cpufreq driver in cppc passive mode, it has both cppc and governor info. We need to invoke two sysctl sub-ops ("get-cpufreq-cppc" and "get-cpufreq-para") to produce both info. A new helper cpufreq_in_cppc_passive_mode() is introduced to tell whether cpufreq driver supports cppc passive mode.