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)
commit4930444bdf33157763ade5dd959b9a2a7477e0a3
tree3cdd842b4f9edda4220d7bb6f2fcca1c967538e3
parent973ce7bd8fb1513dcc5ff04760e03915a9eccd08
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 <dario.faggioli@citrix.com>
xen/drivers/cpufreq/cpufreq.c