diff options
author | Andre Detsch <adetsch@br.ibm.com> | 2007-08-03 21:53:46 -0400 |
---|---|---|
committer | Paul Mackerras <paulus@samba.org> | 2007-08-10 07:04:21 -0400 |
commit | f5996449e3244524cab0ba709a4bd87047a8175f (patch) | |
tree | d25520e4020d148e6595270d93ddbb5f8224d083 /arch/powerpc/platforms/ps3 | |
parent | edd0622bd2e8f755c960827e15aa6908c3c5aa94 (diff) |
[POWERPC] cell: Move SPU affinity init to spu_management_of_ops
This patch moves affinity initialization code from spu_base.c to a
new spu_management_of_ops function (init_affinity), which is empty
in the case of PS3. This fixes a linking problem that was happening
when compiling for PS3.
Also, some small code style changes were made.
Signed-off-by: Andre Detsch <adetsch@br.ibm.com>
Signed-off-by: Geoff Levand <geoffrey.levand@am.sony.com>
Acked-by: Arnd Bergmann <arnd.bergmann@de.ibm.com>
Signed-off-by: Paul Mackerras <paulus@samba.org>
Diffstat (limited to 'arch/powerpc/platforms/ps3')
-rw-r--r-- | arch/powerpc/platforms/ps3/spu.c | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/arch/powerpc/platforms/ps3/spu.c b/arch/powerpc/platforms/ps3/spu.c index 502d80ed982b..ac2a4b8a4c14 100644 --- a/arch/powerpc/platforms/ps3/spu.c +++ b/arch/powerpc/platforms/ps3/spu.c | |||
@@ -414,10 +414,16 @@ static int __init ps3_enumerate_spus(int (*fn)(void *data)) | |||
414 | return num_resource_id; | 414 | return num_resource_id; |
415 | } | 415 | } |
416 | 416 | ||
417 | static int ps3_init_affinity(void) | ||
418 | { | ||
419 | return 0; | ||
420 | } | ||
421 | |||
417 | const struct spu_management_ops spu_management_ps3_ops = { | 422 | const struct spu_management_ops spu_management_ps3_ops = { |
418 | .enumerate_spus = ps3_enumerate_spus, | 423 | .enumerate_spus = ps3_enumerate_spus, |
419 | .create_spu = ps3_create_spu, | 424 | .create_spu = ps3_create_spu, |
420 | .destroy_spu = ps3_destroy_spu, | 425 | .destroy_spu = ps3_destroy_spu, |
426 | .init_affinity = ps3_init_affinity, | ||
421 | }; | 427 | }; |
422 | 428 | ||
423 | /* spu_priv1_ops */ | 429 | /* spu_priv1_ops */ |