* [PATCH v3 05/11] x86/intel_pstate: avoid calling cpufreq_add_cpu() twice
@ 2015-06-11 8:27 Wei Wang
0 siblings, 0 replies; only message in thread
From: Wei Wang @ 2015-06-11 8:27 UTC (permalink / raw)
To: xen-devel, jbeulich; +Cc: andrew.cooper3, Wei Wang
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.
Signed-off-by: Wei Wang <wei.w.wang@intel.com>
---
xen/drivers/cpufreq/cpufreq.c | 2 --
1 file changed, 2 deletions(-)
diff --git a/xen/drivers/cpufreq/cpufreq.c b/xen/drivers/cpufreq/cpufreq.c
index 7d186db..6003a8c 100644
--- a/xen/drivers/cpufreq/cpufreq.c
+++ b/xen/drivers/cpufreq/cpufreq.c
@@ -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))
--
1.9.1
^ permalink raw reply related [flat|nested] only message in thread
only message in thread, other threads:[~2015-06-11 8:27 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2015-06-11 8:27 [PATCH v3 05/11] x86/intel_pstate: avoid calling cpufreq_add_cpu() twice Wei Wang
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.