Skip to content

Commit

Permalink
powerpc/64: hard disable irqs in panic_smp_self_stop
Browse files Browse the repository at this point in the history
Similarly to commit 855bfe0 ("powerpc: hard disable irqs in
smp_send_stop loop"), irqs should be hard disabled by
panic_smp_self_stop.

Signed-off-by: Nicholas Piggin <npiggin@gmail.com>
Signed-off-by: Michael Ellerman <mpe@ellerman.id.au>
  • Loading branch information
Nicholas Piggin authored and Michael Ellerman committed Jun 19, 2018
1 parent 749a027 commit 8c1aef6
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions arch/powerpc/kernel/setup_64.c
Original file line number Diff line number Diff line change
Expand Up @@ -387,6 +387,14 @@ void early_setup_secondary(void)

#endif /* CONFIG_SMP */

void panic_smp_self_stop(void)
{
hard_irq_disable();
spin_begin();
while (1)
spin_cpu_relax();
}

#if defined(CONFIG_SMP) || defined(CONFIG_KEXEC_CORE)
static bool use_spinloop(void)
{
Expand Down

0 comments on commit 8c1aef6

Please sign in to comment.