]> pilppa.com Git - linux-2.6-omap-h63xx.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)
commit7a0d7940e7c7c143520e38900ddd4e217d3c6640
treef2eb26e4c2f1eb6aa1033a50d935a265ff51bb18
parent9ff473b9a72942c5ac0ad35607cae28d8d59ed7a
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