]> git.baikalelectronics.ru Git - kernel.git/commit
x86/entry: Move irq flags tracing to prepare_exit_to_usermode()
authorThomas Gleixner <tglx@linutronix.de>
Wed, 4 Mar 2020 11:51:59 +0000 (12:51 +0100)
committerThomas Gleixner <tglx@linutronix.de>
Thu, 11 Jun 2020 13:14:39 +0000 (15:14 +0200)
commit135480844376d3c5720895d002df330a563e2228
treec0a8c6b928d0ebecb0727f9edb2dabedd88de3bc
parentb1560affd0264645ca647497794935312154dc91
x86/entry: Move irq flags tracing to prepare_exit_to_usermode()

This is another step towards more C-code and less convoluted ASM.

Similar to the entry path, invoke the tracer before context tracking which
might turn off RCU and invoke lockdep as the last step before going back to
user space. Annotate the code sections in exit_to_user_mode() accordingly
so objtool won't complain about the tracer invocation.

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/20200505134340.703783926@linutronix.de
arch/x86/entry/common.c
arch/x86/entry/entry_32.S
arch/x86/entry/entry_64.S
arch/x86/entry/entry_64_compat.S