• Luke Browning's avatar
    [POWERPC] spufs: try to route SPU interrupts to local node · 7a214200
    Luke Browning authored
    Currently, we re-route SPU interrupts to the current cpu, which may be
    on a remote node. In the case of time slicing, all spu interrupts will
    end up routed to the same cpu, where the spusched_tick occurs.
    
    This change routes mfc interrupts to the cpu where the controlling
    thread last ran, provided that cpu is on the same node as the spu
    (otherwise don't reroute interrupts).
    
    This should improve performance and provide a more predictable
    environment for processing spu exceptions. In the past we have seen
    concurrent delivery of spu exceptions to two cpus. This eliminates that
    concern.
    Signed-off-by: default avatarLuke Browning <lukebr@linux.vnet.ibm.com>
    Signed-off-by: default avatarJeremy Kerr <jk@ozlabs.org>
    7a214200
switch.c 62.7 KB