From: Kumar Gala Date: Tue, 2 Dec 2008 19:37:01 +0000 (-0600) Subject: powerpc: Use physical cpu id when setting the processor affinity X-Git-Tag: v2.6.28-rc8~79 X-Git-Url: http://pilppa.com/gitweb/?a=commitdiff_plain;h=7a0d7940e7c7c143520e38900ddd4e217d3c6640;p=linux-2.6-omap-h63xx.git 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 Signed-off-by: Linus Torvalds --- diff --git a/arch/powerpc/sysdev/mpic.c b/arch/powerpc/sysdev/mpic.c index b24e1d08555..1890fb085cd 100644 --- a/arch/powerpc/sysdev/mpic.c +++ b/arch/powerpc/sysdev/mpic.c @@ -600,7 +600,7 @@ static int irq_choose_cpu(unsigned int virt_irq) cpuid = first_cpu(tmp); } - return cpuid; + return get_hard_smp_processor_id(cpuid); } #else static int irq_choose_cpu(unsigned int virt_irq)