x86/debug: Move cond_local_irq_enable() block into exc_debug_user()
authorPeter Zijlstra <peterz@infradead.org>
Wed, 2 Sep 2020 13:25:57 +0000 (15:25 +0200)
committerThomas Gleixner <tglx@linutronix.de>
Fri, 4 Sep 2020 13:12:53 +0000 (15:12 +0200)
commitf0b67c39c190e19bc1604a13bcc985c4445a4b2f
tree8d647ae05593deb3734f21ed5b5d4a9828ad7fc0
parent4eb5acc39187a7ba578fbb44f7bb1965057309ae
x86/debug: Move cond_local_irq_enable() block into exc_debug_user()

The cond_local_irq_enable() block, dealing with vm86 and sending
signals is only relevant for #DB-from-user, move it there.

This then reduces handle_debug() to only the notifier call, so rename
it to notify_debug().

Signed-off-by: Peter Zijlstra (Intel) <peterz@infradead.org>
Signed-off-by: Thomas Gleixner <tglx@linutronix.de>
Tested-by: Daniel Thompson <daniel.thompson@linaro.org>
Link: https://lore.kernel.org/r/20200902133201.094265982@infradead.org
arch/x86/kernel/traps.c