x86/nmi: Mark 'ignore_nmis' as __read_mostly
authorKostenzer Felix <fkostenzer@live.at>
Sun, 6 Mar 2016 22:20:06 +0000 (23:20 +0100)
committerIngo Molnar <mingo@kernel.org>
Tue, 8 Mar 2016 11:48:19 +0000 (12:48 +0100)
commit8e2a7f5b9a8c49f1f4e1dc8972198510f43c0b2e
treeafe4787696a0b2594bc6cd6282e3983baf1ba24c
parente17dc65328057c00db7e1bfea249c8771a78b30b
x86/nmi: Mark 'ignore_nmis' as __read_mostly

ignore_nmis is used in two distinct places:

 1. modified through {stop,restart}_nmi by alternative_instructions
 2. read by do_nmi to determine if default_do_nmi should be called or not

thus the access pattern conforms to __read_mostly and do_nmi() is a fastpath.

Signed-off-by: Kostenzer Felix <fkostenzer@live.at>
Cc: Linus Torvalds <torvalds@linux-foundation.org>
Cc: Peter Zijlstra <peterz@infradead.org>
Cc: Thomas Gleixner <tglx@linutronix.de>
Cc: linux-kernel@vger.kernel.org
Signed-off-by: Ingo Molnar <mingo@kernel.org>
arch/x86/kernel/nmi.c