mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
synced 2025-01-15 09:34:17 +00:00
powerpc: Remove extraneous CONFIG_PPC_ADV_DEBUG_REGS define
All of DebugException is already protected by CONFIG_PPC_ADV_DEBUG_REGS there is no need to have another such ifdef inside the function. Signed-off-by: Kumar Gala <galak@kernel.crashing.org> Signed-off-by: Benjamin Herrenschmidt <benh@kernel.crashing.org>
This commit is contained in:
parent
ba28c9aae2
commit
b95bc21914
@ -1298,14 +1298,12 @@ void __kprobes DebugException(struct pt_regs *regs, unsigned long debug_status)
|
|||||||
|
|
||||||
if (user_mode(regs)) {
|
if (user_mode(regs)) {
|
||||||
current->thread.dbcr0 &= ~DBCR0_IC;
|
current->thread.dbcr0 &= ~DBCR0_IC;
|
||||||
#ifdef CONFIG_PPC_ADV_DEBUG_REGS
|
|
||||||
if (DBCR_ACTIVE_EVENTS(current->thread.dbcr0,
|
if (DBCR_ACTIVE_EVENTS(current->thread.dbcr0,
|
||||||
current->thread.dbcr1))
|
current->thread.dbcr1))
|
||||||
regs->msr |= MSR_DE;
|
regs->msr |= MSR_DE;
|
||||||
else
|
else
|
||||||
/* Make sure the IDM bit is off */
|
/* Make sure the IDM bit is off */
|
||||||
current->thread.dbcr0 &= ~DBCR0_IDM;
|
current->thread.dbcr0 &= ~DBCR0_IDM;
|
||||||
#endif
|
|
||||||
}
|
}
|
||||||
|
|
||||||
_exception(SIGTRAP, regs, TRAP_TRACE, regs->nip);
|
_exception(SIGTRAP, regs, TRAP_TRACE, regs->nip);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user