Re: [PATCH] x86/nmi: Use raw lock

2017-07-25 Thread Don Zickus
On Mon, Jul 24, 2017 at 04:32:42PM -0500, Scott Wood wrote: > register_nmi_handler() can be called from PREEMPT_RT atomic context > (e.g. wakeup_cpu_via_init_nmi() or native_stop_other_cpus()), and thus > ordinary spinlocks cannot be used. Yeah, I guess we have a few awkward places where we regist

[PATCH] x86/nmi: Use raw lock

2017-07-24 Thread Scott Wood
register_nmi_handler() can be called from PREEMPT_RT atomic context (e.g. wakeup_cpu_via_init_nmi() or native_stop_other_cpus()), and thus ordinary spinlocks cannot be used. Signed-off-by: Scott Wood --- arch/x86/kernel/nmi.c | 18 +- 1 file changed, 9 insertions(+), 9 deletions(