We need to bypass construction of px statistic info in cpufreq_statistic_init() for amd-cppc mode, as P-states is not necessary there.
Signed-off-by: Penny Zheng <penny.zh...@amd.com> --- v3 -> v4: - remove unnecessary stub for cpufreq_statistic_exit() --- xen/drivers/cpufreq/utility.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/xen/drivers/cpufreq/utility.c b/xen/drivers/cpufreq/utility.c index e690a484f1..b35e2eb1b6 100644 --- a/xen/drivers/cpufreq/utility.c +++ b/xen/drivers/cpufreq/utility.c @@ -98,6 +98,9 @@ int cpufreq_statistic_init(unsigned int cpu) if ( !pmpt ) return -EINVAL; + if ( !(pmpt->init & XEN_PX_INIT) ) + return 0; + spin_lock(cpufreq_statistic_lock); pxpt = per_cpu(cpufreq_statistic_data, cpu); -- 2.34.1