projects
/
deliverable
/
linux.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
c997679
)
[POWERPC] Fix cell pmu initialisation
author
Stephen Rothwell
<sfr@canb.auug.org.au>
Tue, 5 Dec 2006 04:54:14 +0000
(15:54 +1100)
committer
Paul Mackerras
<paulus@samba.org>
Fri, 8 Dec 2006 04:55:54 +0000
(15:55 +1100)
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>
arch/powerpc/platforms/cell/pmu.c
patch
|
blob
|
blame
|
history
diff --git
a/arch/powerpc/platforms/cell/pmu.c
b/arch/powerpc/platforms/cell/pmu.c
index 99c612025e8fa824dc35cb34741fc6672f6a2e39..d04ae1671e6ce5d40f413f820efeb645169d3ba2 100644
(file)
--- 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)
return IRQ_HANDLED;
}
-int __init cbe_init_pm_irq(void)
+
static
int __init cbe_init_pm_irq(void)
{
unsigned int irq;
int rc, node;
+ if (!machine_is(cell))
+ return 0;
+
for_each_node(node) {
irq = irq_create_mapping(NULL, IIC_IRQ_IOEX_PMI |
(node << IIC_IRQ_NODE_SHIFT));
This page took
0.024506 seconds
and
5
git commands to generate.