diff options
author | Thomas Gleixner <tglx@linutronix.de> | 2020-07-22 23:59:58 +0200 |
---|---|---|
committer | Thomas Gleixner <tglx@linutronix.de> | 2020-07-24 14:59:04 +0200 |
commit | a5497bab5f72dce38a259a53fd3ac1239a7ecf40 (patch) | |
tree | 8447dfe5dae8cbbf7df6de8ccc1bdf65cf2fa840 /mm | |
parent | a9f3a74a29af095f3e1b89e9176f8127912ae0f0 (diff) | |
download | linux-stable-a5497bab5f72dce38a259a53fd3ac1239a7ecf40.tar.gz linux-stable-a5497bab5f72dce38a259a53fd3ac1239a7ecf40.tar.bz2 linux-stable-a5497bab5f72dce38a259a53fd3ac1239a7ecf40.zip |
entry: Provide generic interrupt entry/exit code
Like the syscall entry/exit code interrupt/exception entry after the real
low level ASM bits should not be different accross architectures.
Provide a generic version based on the x86 code.
irqentry_enter() is called after the low level entry code and
irqentry_exit() must be invoked right before returning to the low level
code which just contains the actual return logic. The code before
irqentry_enter() and irqentry_exit() must not be instrumented. Code after
irqentry_enter() and before irqentry_exit() can be instrumented.
irqentry_enter() invokes irqentry_enter_from_user_mode() if the
interrupt/exception came from user mode. If if entered from kernel mode it
handles the kernel mode variant of establishing state for lockdep, RCU and
tracing depending on the kernel context it interrupted (idle, non-idle).
Signed-off-by: Thomas Gleixner <tglx@linutronix.de>
Link: https://lkml.kernel.org/r/20200722220519.723703209@linutronix.de
Diffstat (limited to 'mm')
0 files changed, 0 insertions, 0 deletions