]> git.baikalelectronics.ru Git - kernel.git/commit
powerpc: Use physical cpu id when setting the processor affinity
authorKumar Gala <galak@kernel.crashing.org>
Tue, 2 Dec 2008 19:37:01 +0000 (13:37 -0600)
committerLinus Torvalds <torvalds@linux-foundation.org>
Tue, 2 Dec 2008 23:50:40 +0000 (15:50 -0800)
commitb992aaf0a117e1cc81c80519d80e2c322e3c50c4
treef2eb26e4c2f1eb6aa1033a50d935a265ff51bb18
parent329d43aa88e9934a9b3f89fafaff3ff09fe819be
powerpc: Use physical cpu id when setting the processor affinity

In the CONFIG_SMP case the irq_choose_cpu() code was returning back
a logical cpu id not the physical id.  We were writing that directly
into the HW register.

We need to be calling get_hard_smp_processor_id() so irq_choose_cpu()
always returns a physical cpu id.

Signed-off-by: Kumar Gala <galak@kernel.crashing.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
arch/powerpc/sysdev/mpic.c