]> xenbits.xensource.com Git - people/royger/xen.git/commitdiff
cpufreq: fix notifier block double registration
authorDario Faggioli <dario.faggioli@citrix.com>
Mon, 12 Oct 2015 15:22:02 +0000 (17:22 +0200)
committerJan Beulich <jbeulich@suse.com>
Mon, 12 Oct 2015 15:22:02 +0000 (17:22 +0200)
As a consequence of commit 49388f11d512bb92706ce
("x86/cpufreq: relocate the driver register function")
the cpufreq CPU notifier was being registered twice.
That resulted in bugs when trying to offline a
CPU, as reported here:

 https://www.mail-archive.com/xen-devel@lists.xen.org/msg41618.html

Signed-off-by: Dario Faggioli <dario.faggioli@citrix.com>
xen/drivers/cpufreq/cpufreq.c

index 81a187ba59e99cd6384c024b7861fabc27fdb6c5..6e666e415d94ac4c6f7418de0507a23b6e03d0a3 100644 (file)
@@ -650,6 +650,5 @@ int __init cpufreq_register_driver(struct cpufreq_driver *driver_data)
 
     cpufreq_driver = driver_data;
 
-    register_cpu_notifier(&cpu_nfb);
     return 0;
 }