powerpc/crash: Remove the test for cpu_online in the IPI callback
authorBalbir Singh <bsingharora@gmail.com>
Fri, 15 Dec 2017 08:14:54 +0000 (19:14 +1100)
committerMichael Ellerman <mpe@ellerman.id.au>
Tue, 16 Jan 2018 12:47:10 +0000 (23:47 +1100)
Our check was extra cautious, we've audited crash_send_ipi
and it sends an IPI only to online CPU's. Removal of this
check should have not functional impact on crash kdump.

Signed-off-by: Balbir Singh <bsingharora@gmail.com>
Reviewed-by: Nicholas Piggin <npiggin@gmail.com>
Signed-off-by: Michael Ellerman <mpe@ellerman.id.au>
arch/powerpc/kernel/crash.c

index cbabb5a..29c56ca 100644 (file)
@@ -69,9 +69,6 @@ static void crash_ipi_callback(struct pt_regs *regs)
 
        int cpu = smp_processor_id();
 
-       if (!cpu_online(cpu))
-               return;
-
        hard_irq_disable();
        if (!cpumask_test_cpu(cpu, &cpus_state_saved)) {
                crash_save_cpu(regs, cpu);