• Milton Miller's avatar
    powerpc/xics: Consolidate ipi message encode and decode · d13f7208
    Milton Miller authored
    xics supports only one ipi per cpu, and expects software to use some
    queue to know why the interrupt was sent.  In Linux, we use a an array
    of bitmaps indexed by cpu to identify the message.  Currently the bits
    are set in smp.c and decoded in xics.c, with the data structure in a
    header file.   Consolidate the code in xics.c similar to mpic and other
    interrupt controllers.
    
    Also, while making the the array static, the message word doesn't need
    to be volatile as set_bit and test_clear_bit take care of it for us, and
    put it under ifdef smp.
    Signed-off-by: default avatarMilton Miller <miltonm@bga.com>
    Signed-off-by: default avatarBenjamin Herrenschmidt <benh@kernel.crashing.org>
    d13f7208
xics.h 733 Bytes