summaryrefslogtreecommitdiffstats
path: root/arch/powerpc/platforms/cell/interrupt.h
diff options
context:
space:
mode:
authorArnd Bergmann <arnd@arndb.de>2006-01-05 15:05:29 +0100
committerPaul Mackerras <paulus@samba.org>2006-01-09 05:44:57 +0100
commit2fb9d2063626374dd8a2514b3a730facac8235d8 (patch)
treeb410dcdbc5aee656c37951be36951130450549e7 /arch/powerpc/platforms/cell/interrupt.h
parent[PATCH] spufs: fix allocation on 64k pages (diff)
downloadlinux-2fb9d2063626374dd8a2514b3a730facac8235d8.tar.xz
linux-2fb9d2063626374dd8a2514b3a730facac8235d8.zip
[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>
Diffstat (limited to 'arch/powerpc/platforms/cell/interrupt.h')
-rw-r--r--arch/powerpc/platforms/cell/interrupt.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/arch/powerpc/platforms/cell/interrupt.h b/arch/powerpc/platforms/cell/interrupt.h
index 37d58e6fd0c6..a14bd38791c0 100644
--- a/arch/powerpc/platforms/cell/interrupt.h
+++ b/arch/powerpc/platforms/cell/interrupt.h
@@ -54,6 +54,7 @@ extern void iic_setup_cpu(void);
extern void iic_local_enable(void);
extern void iic_local_disable(void);
+extern u8 iic_get_target_id(int cpu);
extern void spider_init_IRQ(void);
extern int spider_get_irq(unsigned long int_pending);