diff options
author | Douglas Anderson <[email protected]> | 2023-09-06 09:03:00 -0700 |
---|---|---|
committer | Catalin Marinas <[email protected]> | 2023-09-25 17:15:29 +0100 |
commit | d7402513c935ad87413b01aa51a7ada0ad2f0163 (patch) | |
tree | ffe44b0bf3d8c440a7d3a137fd617e66e04cc308 | |
parent | 331a1b3a836c0f38165dcec168c0a03b93cf0c17 (diff) |
arm64: smp: IPI_CPU_STOP and IPI_CPU_CRASH_STOP should try for NMI
There's no reason why IPI_CPU_STOP and IPI_CPU_CRASH_STOP can't be
handled as NMI. They are very simple and everything in them is
NMI-safe. Mark them as things to use NMI for if NMI is available.
Suggested-by: Mark Rutland <[email protected]>
Reviewed-by: Stephen Boyd <[email protected]>
Reviewed-by: Misono Tomohiro <[email protected]>
Reviewed-by: Sumit Garg <[email protected]>
Acked-by: Mark Rutland <[email protected]>
Tested-by: Mark Rutland <[email protected]>
Tested-by: Chen-Yu Tsai <[email protected]>
Signed-off-by: Douglas Anderson <[email protected]>
Link: https://lore.kernel.org/r/20230906090246.v13.5.Ifadbfd45b22c52edcb499034dd4783d096343260@changeid
Signed-off-by: Catalin Marinas <[email protected]>
-rw-r--r-- | arch/arm64/kernel/smp.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/arch/arm64/kernel/smp.c b/arch/arm64/kernel/smp.c index 28c904ca499a..800c59cf9b64 100644 --- a/arch/arm64/kernel/smp.c +++ b/arch/arm64/kernel/smp.c @@ -946,6 +946,8 @@ static bool ipi_should_be_nmi(enum ipi_msg_type ipi) return false; switch (ipi) { + case IPI_CPU_STOP: + case IPI_CPU_CRASH_STOP: case IPI_CPU_BACKTRACE: return true; default: |