diff options
author | Nicholas Piggin <npiggin@gmail.com> | 2018-05-19 06:35:52 +0200 |
---|---|---|
committer | Michael Ellerman <mpe@ellerman.id.au> | 2018-06-19 13:28:22 +0200 |
commit | 8c1aef6a682f87a059f10ab606cc1e2cdd663d5a (patch) | |
tree | 723a47f1f26a7d17fa876cd60f87612b03183aab /arch | |
parent | powerpc/64s: Fix DT CPU features Power9 DD2.1 logic (diff) | |
download | linux-8c1aef6a682f87a059f10ab606cc1e2cdd663d5a.tar.xz linux-8c1aef6a682f87a059f10ab606cc1e2cdd663d5a.zip |
powerpc/64: hard disable irqs in panic_smp_self_stop
Similarly to commit 855bfe0de1 ("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>
Diffstat (limited to 'arch')
-rw-r--r-- | arch/powerpc/kernel/setup_64.c | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/arch/powerpc/kernel/setup_64.c b/arch/powerpc/kernel/setup_64.c index 7a7ce8ad455e..225bc5f91049 100644 --- a/arch/powerpc/kernel/setup_64.c +++ b/arch/powerpc/kernel/setup_64.c @@ -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) { |