diff options
author | Geoff Levand <geoffrey.levand@am.sony.com> | 2006-06-19 14:33:30 -0400 |
---|---|---|
committer | Paul Mackerras <paulus@samba.org> | 2006-06-21 01:01:31 -0400 |
commit | a91942ae7ebd518006dcbeb2a1d7b147253c080e (patch) | |
tree | 74a923f4847495b509089d92010c42c0cb123f4a /arch/powerpc/platforms/cell/spufs/sched.c | |
parent | 540270d82db943855538cea5d0c790e7e669dda0 (diff) |
[POWERPC] spufs: fix spu irq affinity setting
This changes the hypervisor abstraction of setting cpu affinity to a
higher level to avoid platform dependent interrupt controller
routines. I replaced spu_priv1_ops:spu_int_route_set() with a
new routine spu_priv1_ops:spu_cpu_affinity_set().
As a by-product, this change eliminated what looked like an
existing bug in the set affinity code where spu_int_route_set()
mistakenly called int_stat_get().
Signed-off-by: Geoff Levand <geoffrey.levand@am.sony.com>
Signed-off-by: Arnd Bergmann <arnd.bergmann@de.ibm.com>
Signed-off-by: Paul Mackerras <paulus@samba.org>
Diffstat (limited to 'arch/powerpc/platforms/cell/spufs/sched.c')
-rw-r--r-- | arch/powerpc/platforms/cell/spufs/sched.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/arch/powerpc/platforms/cell/spufs/sched.c b/arch/powerpc/platforms/cell/spufs/sched.c index bf652cd77000..3dcc5d8d66b9 100644 --- a/arch/powerpc/platforms/cell/spufs/sched.c +++ b/arch/powerpc/platforms/cell/spufs/sched.c | |||
@@ -43,6 +43,7 @@ | |||
43 | #include <asm/mmu_context.h> | 43 | #include <asm/mmu_context.h> |
44 | #include <asm/spu.h> | 44 | #include <asm/spu.h> |
45 | #include <asm/spu_csa.h> | 45 | #include <asm/spu_csa.h> |
46 | #include <asm/spu_priv1.h> | ||
46 | #include "spufs.h" | 47 | #include "spufs.h" |
47 | 48 | ||
48 | #define SPU_MIN_TIMESLICE (100 * HZ / 1000) | 49 | #define SPU_MIN_TIMESLICE (100 * HZ / 1000) |
@@ -363,7 +364,7 @@ int spu_activate(struct spu_context *ctx, u64 flags) | |||
363 | * We're likely to wait for interrupts on the same | 364 | * We're likely to wait for interrupts on the same |
364 | * CPU that we are now on, so send them here. | 365 | * CPU that we are now on, so send them here. |
365 | */ | 366 | */ |
366 | spu_irq_setaffinity(spu, raw_smp_processor_id()); | 367 | spu_cpu_affinity_set(spu, raw_smp_processor_id()); |
367 | put_active_spu(spu); | 368 | put_active_spu(spu); |
368 | return 0; | 369 | return 0; |
369 | } | 370 | } |