Commit 3a72db70 authored by Huang Shijie's avatar Huang Shijie Committed by Will Deacon

arm64: mm: remove the redundant code

We already re-enable interrupts where necessary in the entry code, so
there is no need to do it again in do_page fault. This patch removes
the redundant code.
Acked-by: default avatarCatalin Marinas <catalin.marinas@arm.com>
Signed-off-by: default avatarHuang Shijie <shijie.huang@arm.com>
Signed-off-by: default avatarWill Deacon <will.deacon@arm.com>
parent 66dbd6e6
...@@ -262,10 +262,6 @@ static int __kprobes do_page_fault(unsigned long addr, unsigned int esr, ...@@ -262,10 +262,6 @@ static int __kprobes do_page_fault(unsigned long addr, unsigned int esr,
tsk = current; tsk = current;
mm = tsk->mm; mm = tsk->mm;
/* Enable interrupts if they were enabled in the parent context. */
if (interrupts_enabled(regs))
local_irq_enable();
/* /*
* If we're in an interrupt or have no user context, we must not take * If we're in an interrupt or have no user context, we must not take
* the fault. * the fault.
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment