From: Dario Faggioli Date: Mon, 12 Oct 2015 15:22:02 +0000 (+0200) Subject: cpufreq: fix notifier block double registration X-Git-Tag: archive/raspbian/4.8.0-1+rpi1~1^2~2395 X-Git-Url: https://dgit.raspbian.org/?a=commitdiff_plain;h=4930444bdf33157763ade5dd959b9a2a7477e0a3;p=xen.git cpufreq: fix notifier block double registration 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 --- diff --git a/xen/drivers/cpufreq/cpufreq.c b/xen/drivers/cpufreq/cpufreq.c index 81a187ba59..6e666e415d 100644 --- a/xen/drivers/cpufreq/cpufreq.c +++ b/xen/drivers/cpufreq/cpufreq.c @@ -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; }