提交 cee2824f 编写于 作者: D David S. Miller

[SPARC64]: Fix goal_cpu tracking in retarget_one_irq().

We would never advance the goal_cpu counter like we
should, so all IRQs would go to a single processor.
Signed-off-by: NDavid S. Miller <davem@davemloft.net>
上级 8800cea6
......@@ -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;
}
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册