projects
/
openwrt
/
staging
/
blogic.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
8800cea
)
[SPARC64]: Fix goal_cpu tracking in retarget_one_irq().
author
David S. Miller
<davem@davemloft.net>
Wed, 4 May 2005 05:04:36 +0000
(22:04 -0700)
committer
David S. Miller
<davem@davemloft.net>
Wed, 4 May 2005 05:04:36 +0000
(22:04 -0700)
We would never advance the goal_cpu counter like we
should, so all IRQs would go to a single processor.
Signed-off-by: David S. Miller <davem@davemloft.net>
arch/sparc64/kernel/irq.c
patch
|
blob
|
history
diff --git
a/arch/sparc64/kernel/irq.c
b/arch/sparc64/kernel/irq.c
index a38cb5036df06283848d4a5b2a059ef4be1c88b5..ab2f36863fa4a541dd37d73911153a3303976811 100644
(file)
--- a/
arch/sparc64/kernel/irq.c
+++ b/
arch/sparc64/kernel/irq.c
@@
-1007,10
+1007,10
@@
static int retarget_one_irq(struct irqaction *p, int goal_cpu)
}
upa_writel(tid | IMAP_VALID, imap);
-
while (!cpu_online(goal_cpu))
{
+
do
{
if (++goal_cpu >= NR_CPUS)
goal_cpu = 0;
- }
+ }
while (!cpu_online(goal_cpu));
return goal_cpu;
}