]> err.no Git - linux-2.6/commit
[CELL] cbe_cpufreq: fix initialization
authorChristian Krafft <krafft@de.ibm.com>
Fri, 20 Jul 2007 19:39:20 +0000 (21:39 +0200)
committerArnd Bergmann <arnd@klappe.arndb.de>
Fri, 20 Jul 2007 19:41:36 +0000 (21:41 +0200)
commite5ecc8719212e2566440818491ec5741689f3743
tree62bcda88cc4fe809b38549695262905edd664e09
parenta964b9be3e475f30aee334654b4ff200bcdc0092
[CELL] cbe_cpufreq: fix initialization

This patch fixes the initialization of the cbe_cpufreq driver.
The code that initializes the PMI related functions was called per cpu:
* registering cpufreq notifier block
* registering a pmi handler

This ends in a bug that the notifier block gets called in an endless loop.
The initialization code is being put to the
module init code path by this patch. This way it only gets called once.

Signed-off-by: Christian Krafft <krafft@de.ibm.com>
Signed-off-by: Arnd Bergmann <arnd.bergmann@de.ibm.com>
arch/powerpc/platforms/cell/cbe_cpufreq.c