]> 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)
commit3cd788c1eec4b3659671aa13d335a15102ac4d06
treef7080145bca8487264d045dedc7874fb87d63670
parent85b77cdd8fbd163d65f340e3f6578c50031af960
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