summaryrefslogtreecommitdiffstats
path: root/arch/x86/include/asm/traps.h
diff options
context:
space:
mode:
authorThomas Gleixner <tglx@linutronix.de>2019-10-23 14:27:10 +0200
committerThomas Gleixner <tglx@linutronix.de>2020-06-11 15:14:42 +0200
commitca4c6a9858c23b4f330113f391f2eadc983e780f (patch)
tree1cf9367ed051cdd14309ef1adf7c4fa37e45a40f /arch/x86/include/asm/traps.h
parentx86/entry/64: Use native swapgs in asm_load_gs_index() (diff)
downloadlinux-ca4c6a9858c23b4f330113f391f2eadc983e780f.tar.xz
linux-ca4c6a9858c23b4f330113f391f2eadc983e780f.zip
x86/traps: Make interrupt enable/disable symmetric in C code
Traps enable interrupts conditionally but rely on the ASM return code to disable them again. That results in redundant interrupt disable and trace calls. Make the trap handlers disable interrupts before returning to avoid that, which allows simplification of the ASM entry code in follow up changes. Originally-by: Peter Zijlstra <peterz@infradead.org> 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/20200505134903.622702796@linutronix.de
Diffstat (limited to 'arch/x86/include/asm/traps.h')
0 files changed, 0 insertions, 0 deletions