[PATCH] spufs: set irq affinity for running threads
authorArnd Bergmann <arnd@arndb.de>
Thu, 5 Jan 2006 14:05:29 +0000 (14:05 +0000)
committerPaul Mackerras <paulus@samba.org>
Mon, 9 Jan 2006 04:44:57 +0000 (15:44 +1100)
commit2fb9d2063626374dd8a2514b3a730facac8235d8
treeb410dcdbc5aee656c37951be36951130450549e7
parentaeb013772a2cc85a8d0baffd64977d2888bc781d
[PATCH] spufs: set irq affinity for running threads

For far, all SPU triggered interrupts always end up on
the first SMT thread, which is a bad solution.

This patch implements setting the affinity to the
CPU that was running last when entering execution on
an SPU. This should result in a significant reduction
in IPI calls and better cache locality for SPE thread
specific data.

Signed-off-by: Arnd Bergmann <arndb@de.ibm.com>
Signed-off-by: Paul Mackerras <paulus@samba.org>
arch/powerpc/platforms/cell/interrupt.c
arch/powerpc/platforms/cell/interrupt.h
arch/powerpc/platforms/cell/spu_base.c
arch/powerpc/platforms/cell/spufs/sched.c
include/asm-powerpc/spu.h