• Suresh Warrier's avatar
    powerpc/smp: Add smp_muxed_ipi_set_message · 31639c77
    Suresh Warrier authored
    smp_muxed_ipi_message_pass() invokes smp_ops->cause_ipi, which
    uses an ioremapped address to access registers on the XICS
    interrupt controller to cause the IPI. Because of this real
    mode callers cannot call smp_muxed_ipi_message_pass() for IPI
    messaging.
    
    This patch creates a separate function smp_muxed_ipi_set_message
    just to set the IPI message without the cause_ipi routine.
    After calling this function to set the IPI message, real
    mode callers must cause the IPI by writing to the XICS registers
    directly.
    
    As part of this, we also change smp_muxed_ipi_message_pass
    to call smp_muxed_ipi_set_message to set the message instead
    of doing it directly inside the routine.
    Signed-off-by: default avatarSuresh Warrier <warrier@linux.vnet.ibm.com>
    Acked-by: default avatarMichael Ellerman <mpe@ellerman.id.au>
    Signed-off-by: default avatarPaul Mackerras <paulus@samba.org>
    31639c77
smp.c 18.3 KB