]> git.baikalelectronics.ru Git - kernel.git/commit
x86/mce: Address objtools noinstr complaints
authorThomas Gleixner <tglx@linutronix.de>
Tue, 21 Apr 2020 19:22:36 +0000 (21:22 +0200)
committerThomas Gleixner <tglx@linutronix.de>
Thu, 11 Jun 2020 13:15:02 +0000 (15:15 +0200)
commitba723bd53bed156c57d6696f28bc725ff1d29639
treec9800c78f472be091addac5a29195734a22dd8d5
parent769d13868e2118647a96e8603fe57296201aed48
x86/mce: Address objtools noinstr complaints

Mark the relevant functions noinstr, use the plain non-instrumented MSR
accessors. The only odd part is the instrumentation_begin()/end() pair around the
indirect machine_check_vector() call as objtool can't figure that out. The
possible invoked functions are annotated correctly.

Also use notrace variant of nmi_enter/exit(). If MCEs happen then hardware
latency tracing is the least of the worries.

Signed-off-by: Thomas Gleixner <tglx@linutronix.de>
Reviewed-by: Alexandre Chartre <alexandre.chartre@oracle.com>
Acked-by: Peter Zijlstra <peterz@infradead.org>
Acked-by: Andy Lutomirski <luto@kernel.org>
Link: https://lkml.kernel.org/r/20200505135315.476734898@linutronix.de
arch/x86/kernel/cpu/mce/core.c
arch/x86/kernel/cpu/mce/p5.c
arch/x86/kernel/cpu/mce/winchip.c
kernel/time/timekeeping.c