]> git.baikalelectronics.ru Git - kernel.git/commit
x86/traps: Restructure #DB handling
authorThomas Gleixner <tglx@linutronix.de>
Mon, 4 May 2020 17:56:26 +0000 (19:56 +0200)
committerThomas Gleixner <tglx@linutronix.de>
Thu, 11 Jun 2020 13:15:01 +0000 (15:15 +0200)
commit727fcd725bac59c194642ae5f5f5ab940dbc815a
tree1ee567cda8044a3c20727a586b772fb77af96b51
parenta16f4286b1480bbb92d177b63484812c0b330b30
x86/traps: Restructure #DB handling

Now that there are separate entry points, move the kernel/user_mode specifc
checks into the entry functions so the common handling code does not need
the extra mode checks. Make the code more readable while at it.

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/20200505135315.283276272@linutronix.de
arch/x86/kernel/traps.c