arm64: debug: Remove redundant user_mode(regs) checks from debug handlers
authorWill Deacon <will.deacon@arm.com>
Tue, 26 Feb 2019 15:37:09 +0000 (15:37 +0000)
committerWill Deacon <will.deacon@arm.com>
Tue, 9 Apr 2019 10:21:13 +0000 (11:21 +0100)
commitfb610f2a2006322bebeb30408fefce6a01df09ea
treef9e6531415ddea6b10f2cb1c665291a5fabc70db
parenta22d570aee77ae626e4d3532478ae8058a24bdb3
arm64: debug: Remove redundant user_mode(regs) checks from debug handlers

Now that the debug hook dispatching code takes the triggering exception
level into account, there's no need for the hooks themselves to poke
around with user_mode(regs).

Reviewed-by: Mark Rutland <mark.rutland@arm.com>
Signed-off-by: Will Deacon <will.deacon@arm.com>
arch/arm64/kernel/kgdb.c
arch/arm64/kernel/probes/kprobes.c
arch/arm64/kernel/probes/uprobes.c
arch/arm64/kernel/traps.c