• M
    powerpc/cell: Use common smp ipi actions · 7ef71d75
    Milton Miller 提交于
    The cell iic interrupt controller has enough software caused interrupts
    to use a unique interrupt for each of the 4 messages powerpc uses.
    This means each interrupt gets its own irq action/data combination.
    
    Use the seperate, optimized, arch common ipi action functions
    registered via the helper smp_request_message_ipi instead passing the
    message as action data to a single action that then demultipexes to
    the required acton via a switch statement.
    
    smp_request_message_ipi will register the action as IRQF_PER_CPU
    and IRQF_DISABLED, and WARN if the allocation fails for some reason,
    so no need to print on that failure.  It will return positive if
    the message will not be used by the kernel, in which case we can
    free the virq.
    
    In addition to elimiating inefficient code, this also corrects the
    error that a kernel built with kexec but without a debugger would
    not register the ipi for kdump to notify the other cpus of a crash.
    
    This also restores the debugger action to be static to kernel/smp.c.
    Signed-off-by: NMilton Miller <miltonm@bga.com>
    Signed-off-by: NBenjamin Herrenschmidt <benh@kernel.crashing.org>
    7ef71d75
smp.c 16.4 KB