x86/nmi: Use raw lock
authorScott Wood <swood@redhat.com>
Mon, 24 Jul 2017 21:32:42 +0000 (16:32 -0500)
committerThomas Gleixner <tglx@linutronix.de>
Wed, 16 Aug 2017 18:40:09 +0000 (20:40 +0200)
commitc455fd9235b6bd2802db86109cfa0ec105992f68
treeab616a25b0e9608c9102a68b87c8ac21506994e8
parentef954844c7ace62f773f4f23e28d2d915adc419f
x86/nmi: Use raw lock

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 <swood@redhat.com>
Signed-off-by: Thomas Gleixner <tglx@linutronix.de>
Acked-by: Don Zickus <dzickus@redhat.com>
Link: http://lkml.kernel.org/r/20170724213242.27598-1-swood@redhat.com
arch/x86/kernel/nmi.c