diff options
author | Stephen Rothwell <sfr@canb.auug.org.au> | 2006-12-04 23:54:14 -0500 |
---|---|---|
committer | Paul Mackerras <paulus@samba.org> | 2006-12-07 23:55:54 -0500 |
commit | a081e126e12f78651499ba0f9944a7df1e9b06b6 (patch) | |
tree | cdc10394758304462953a3e546d80fbef6a033d2 /arch/powerpc/platforms | |
parent | c99767974ebd2a719d849fdeaaa1674456f5283f (diff) |
[POWERPC] Fix cell pmu initialisation
Make sure that the pmu is not initialised unless we are running on a cell.
Also make the init routine static.
Signed-off-by: Stephen Rothwell <sfr@canb.auug.org.au>
Signed-off-by: Paul Mackerras <paulus@samba.org>
Diffstat (limited to 'arch/powerpc/platforms')
-rw-r--r-- | arch/powerpc/platforms/cell/pmu.c | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/arch/powerpc/platforms/cell/pmu.c b/arch/powerpc/platforms/cell/pmu.c index 99c612025e8f..d04ae1671e6c 100644 --- a/arch/powerpc/platforms/cell/pmu.c +++ b/arch/powerpc/platforms/cell/pmu.c | |||
@@ -382,11 +382,14 @@ static irqreturn_t cbe_pm_irq(int irq, void *dev_id) | |||
382 | return IRQ_HANDLED; | 382 | return IRQ_HANDLED; |
383 | } | 383 | } |
384 | 384 | ||
385 | int __init cbe_init_pm_irq(void) | 385 | static int __init cbe_init_pm_irq(void) |
386 | { | 386 | { |
387 | unsigned int irq; | 387 | unsigned int irq; |
388 | int rc, node; | 388 | int rc, node; |
389 | 389 | ||
390 | if (!machine_is(cell)) | ||
391 | return 0; | ||
392 | |||
390 | for_each_node(node) { | 393 | for_each_node(node) { |
391 | irq = irq_create_mapping(NULL, IIC_IRQ_IOEX_PMI | | 394 | irq = irq_create_mapping(NULL, IIC_IRQ_IOEX_PMI | |
392 | (node << IIC_IRQ_NODE_SHIFT)); | 395 | (node << IIC_IRQ_NODE_SHIFT)); |