[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>
This commit is contained in:
committed by
Paul Mackerras
parent
540270d82d
commit
a91942ae7e
@@ -33,7 +33,7 @@ struct spu_priv1_ops
|
||||
u64 (*int_mask_get) (struct spu *spu, int class);
|
||||
void (*int_stat_clear) (struct spu *spu, int class, u64 stat);
|
||||
u64 (*int_stat_get) (struct spu *spu, int class);
|
||||
void (*int_route_set) (struct spu *spu, u64 route);
|
||||
void (*cpu_affinity_set) (struct spu *spu, int cpu);
|
||||
u64 (*mfc_dar_get) (struct spu *spu);
|
||||
u64 (*mfc_dsisr_get) (struct spu *spu);
|
||||
void (*mfc_dsisr_set) (struct spu *spu, u64 dsisr);
|
||||
@@ -88,9 +88,9 @@ spu_int_stat_get (struct spu *spu, int class)
|
||||
}
|
||||
|
||||
static inline void
|
||||
spu_int_route_set (struct spu *spu, u64 route)
|
||||
spu_cpu_affinity_set (struct spu *spu, int cpu)
|
||||
{
|
||||
spu_priv1_ops->int_stat_get(spu, route);
|
||||
spu_priv1_ops->cpu_affinity_set(spu, cpu);
|
||||
}
|
||||
|
||||
static inline u64
|
||||
|
||||
Reference in New Issue
Block a user