]> git.baikalelectronics.ru Git - kernel.git/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)
commita73eee87fca67aacc053eeacb3599224f97ea398
tree62bcda88cc4fe809b38549695262905edd664e09
parentce9a5b8fc188d131410fb189ed83d3a28eba720b
[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