diff options
author | Nicholas Piggin <npiggin@gmail.com> | 2019-10-22 21:58:14 +1000 |
---|---|---|
committer | Michael Ellerman <mpe@ellerman.id.au> | 2019-10-29 21:47:01 +1100 |
commit | 7d6475051fb3d9339c5c760ed9883bc0a9048b21 (patch) | |
tree | 1ceb55b53e769a3cae7ebfa3d4b2a6454b2318b9 /net | |
parent | 05d9a952832cb206a32e3705eff6edebdb2207e7 (diff) | |
download | linux-7d6475051fb3d9339c5c760ed9883bc0a9048b21.tar.bz2 |
powerpc/powernv: Fix CPU idle to be called with IRQs disabled
Commit e78a7614f3876 ("idle: Prevent late-arriving interrupts from
disrupting offline") changes arch_cpu_idle_dead to be called with
interrupts disabled, which triggers the WARN in pnv_smp_cpu_kill_self.
Fix this by fixing up irq_happened after hard disabling, rather than
requiring there are no pending interrupts, similarly to what was done
done until commit 2525db04d1cc5 ("powerpc/powernv: Simplify lazy IRQ
handling in CPU offline").
Fixes: e78a7614f3876 ("idle: Prevent late-arriving interrupts from disrupting offline")
Reported-by: Paul Mackerras <paulus@samba.org>
Signed-off-by: Nicholas Piggin <npiggin@gmail.com>
[mpe: Add unexpected_mask rather than checking for known bad values,
change the WARN_ON() to a WARN_ON_ONCE()]
Signed-off-by: Michael Ellerman <mpe@ellerman.id.au>
Link: https://lore.kernel.org/r/20191022115814.22456-1-npiggin@gmail.com
Diffstat (limited to 'net')
0 files changed, 0 insertions, 0 deletions