Skip to content

Commit

Permalink
[PATCH] powerpc: fix spider-pic affinity setting
Browse files Browse the repository at this point in the history
As noticed by Milton Miller, setting the initial affinity in
spider-pic can go wrong if the target node field was not orinally
empty.

Signed-off-by: Arnd Bergmann <arnd.bergmann@de.ibm.com>
Signed-off-by: Paul Mackerras <paulus@samba.org>
  • Loading branch information
Arnd Bergmann authored and Paul Mackerras committed Mar 27, 2006
1 parent 16cc11d commit 2fa6874
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion arch/powerpc/platforms/cell/spider-pic.c
Original file line number Diff line number Diff line change
Expand Up @@ -88,7 +88,7 @@ static void spider_enable_irq(unsigned int irq)
void __iomem *cfg = spider_get_irq_config(irq);
irq = spider_get_nr(irq);

out_be32(cfg, in_be32(cfg) | 0x3107000eu | nodeid);
out_be32(cfg, (in_be32(cfg) & ~0xf0)| 0x3107000eu | nodeid);
out_be32(cfg + 4, in_be32(cfg + 4) | 0x00020000u | irq);
}

Expand Down

0 comments on commit 2fa6874

Please sign in to comment.