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)
commit9347f41352181bf4a7e663f7b5f4a4bb32244d73
tree1ee567cda8044a3c20727a586b772fb77af96b51
parent4c0dcd8350a03cb65f645a039f2772be880ee74a
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