Skip to contentSkip to conversation

x86/intel_pstate: avoid calling cpufreq_add_cpu() twice

PATCH Superseded Wei Wang 1 participant 1 message Jun 11, 2015

v3 of 6 Superseded Latest is v6 →

lore
Share & tools
lore

Wei Wang

author
#0 lore raw

PATCH v3 5/11 x86/intel_pstate: avoid calling cpufreq_add_cpu() twice

cpufreq_add_cpu() is already called in the hypercall code path (the bottom of set_px_pminfo() and inside cpufreq_cpu_init()). So, we remove the redundant calling here.

---
 xen/drivers/cpufreq/cpufreq.c | 2 --
 1 file changed, 2 deletions(-)
xen/drivers/cpufreq/cpufreq.c +0 -2
index 7d186db..6003a8c 100644
@@ -632,8 +632,6 @@ static struct notifier_block cpu_nfb = {
 
 int cpufreq_register_driver(struct cpufreq_driver *driver_data)
 {
-    void *cpu = (void *)(long)smp_processor_id();
-    cpu_callback(&cpu_nfb, CPU_ONLINE, cpu);
     if (!driver_data || !driver_data->init
         || !driver_data->verify || !driver_data->exit
         || (!driver_data->target == !driver_data->setpolicy))
Signature · 1 line
1.9.1