mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-28 18:51:56 -04:00
[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 <[email protected]> Signed-off-by: Geoff Levand <[email protected]> Acked-by: Arnd Bergmann <[email protected]> Signed-off-by: Paul Mackerras <[email protected]>
This commit is contained in:
parent
edd0622bd2
commit
f5996449e3
4 changed files with 177 additions and 140 deletions
|
|
@ -178,6 +178,7 @@ struct spu_management_ops {
|
|||
int (*enumerate_spus)(int (*fn)(void *data));
|
||||
int (*create_spu)(struct spu *spu, void *data);
|
||||
int (*destroy_spu)(struct spu *spu);
|
||||
int (*init_affinity)(void);
|
||||
};
|
||||
|
||||
extern const struct spu_management_ops* spu_management_ops;
|
||||
|
|
@ -200,6 +201,12 @@ spu_destroy_spu (struct spu *spu)
|
|||
return spu_management_ops->destroy_spu(spu);
|
||||
}
|
||||
|
||||
static inline int
|
||||
spu_init_affinity (void)
|
||||
{
|
||||
return spu_management_ops->init_affinity();
|
||||
}
|
||||
|
||||
/*
|
||||
* The declarations folowing are put here for convenience
|
||||
* and only intended to be used by the platform setup code.
|
||||
|
|
|
|||
Loading…
Reference in a new issue