]> git.baikalelectronics.ru Git - kernel.git/commit
x86/smp: Use static key for reschedule interrupt tracing
authorThomas Gleixner <tglx@linutronix.de>
Mon, 28 Aug 2017 06:47:30 +0000 (08:47 +0200)
committerIngo Molnar <mingo@kernel.org>
Tue, 29 Aug 2017 09:42:27 +0000 (11:42 +0200)
commit44a080add34acd1a22666904274785960ed5a60a
treef7080145bca8487264d045dedc7874fb87d63670
parent6eca2b8ff010facda9b1807428a254c688ca7a54
x86/smp: Use static key for reschedule interrupt tracing

It's worth to avoid the extra irq_enter()/irq_exit() pair in the case that
the reschedule interrupt tracepoints are disabled.

Use the static key which indicates that exception tracing is enabled. For
now this key is global. It will be optimized in a later step.

Signed-off-by: Thomas Gleixner <tglx@linutronix.de>
Reviewed-by: Steven Rostedt (VMware) <rostedt@goodmis.org>
Cc: Andy Lutomirski <luto@kernel.org>
Cc: Borislav Petkov <bp@alien8.de>
Cc: Linus Torvalds <torvalds@linux-foundation.org>
Cc: Peter Zijlstra <peterz@infradead.org>
Link: http://lkml.kernel.org/r/20170828064957.299808677@linutronix.de
Signed-off-by: Ingo Molnar <mingo@kernel.org>
arch/x86/include/asm/hw_irq.h
arch/x86/kernel/smp.c