diff options
author | Thomas Gleixner <[email protected]> | 2019-10-23 14:27:10 +0200 |
---|---|---|
committer | Thomas Gleixner <[email protected]> | 2020-06-11 15:14:42 +0200 |
commit | ca4c6a9858c23b4f330113f391f2eadc983e780f (patch) | |
tree | 1cf9367ed051cdd14309ef1adf7c4fa37e45a40f /scripts/gcc-plugins/cyc_complexity_plugin.c | |
parent | c9317202af70ee03d44fdd68abebdb640b8ab411 (diff) |
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 <[email protected]>
Signed-off-by: Thomas Gleixner <[email protected]>
Reviewed-by: Alexandre Chartre <[email protected]>
Acked-by: Peter Zijlstra <[email protected]>
Acked-by: Andy Lutomirski <[email protected]>
Link: https://lkml.kernel.org/r/[email protected]
Diffstat (limited to 'scripts/gcc-plugins/cyc_complexity_plugin.c')
0 files changed, 0 insertions, 0 deletions