diff options
author | Nicholas Piggin <npiggin@gmail.com> | 2016-12-20 04:30:09 +1000 |
---|---|---|
committer | Michael Ellerman <mpe@ellerman.id.au> | 2017-04-28 21:02:25 +1000 |
commit | c64af6458e2e2ddf86aff559837d3925fbf9cbb5 (patch) | |
tree | 63993fee176303787f76ebc95381bb438e41ea27 /arch/powerpc/kernel | |
parent | ddd703ca06ede1b2d01ed1b0cb8d4315ab808099 (diff) | |
download | op-kernel-dev-c64af6458e2e2ddf86aff559837d3925fbf9cbb5.zip op-kernel-dev-c64af6458e2e2ddf86aff559837d3925fbf9cbb5.tar.gz |
powerpc: Add struct smp_ops_t.cause_nmi_ipi operation
Have the NMI IPI code use this op when the platform defines it.
Signed-off-by: Nicholas Piggin <npiggin@gmail.com>
Signed-off-by: Michael Ellerman <mpe@ellerman.id.au>
Diffstat (limited to 'arch/powerpc/kernel')
-rw-r--r-- | arch/powerpc/kernel/smp.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/arch/powerpc/kernel/smp.c b/arch/powerpc/kernel/smp.c index 7461b19..b37973f 100644 --- a/arch/powerpc/kernel/smp.c +++ b/arch/powerpc/kernel/smp.c @@ -417,6 +417,9 @@ out: static void do_smp_send_nmi_ipi(int cpu) { + if (smp_ops->cause_nmi_ipi && smp_ops->cause_nmi_ipi(cpu)) + return; + if (cpu >= 0) { do_message_pass(cpu, PPC_MSG_NMI_IPI); } else { |