mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git
synced 2024-09-12 13:55:32 +00:00
[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: David S. Miller <davem@davemloft.net>
This commit is contained in:
parent
8800cea620
commit
cee2824f85
1 changed files with 2 additions and 2 deletions
|
@ -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;
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue