arm64: mm: remove the redundant code
authorHuang Shijie <shijie.huang@arm.com>
Mon, 18 Apr 2016 01:49:56 +0000 (09:49 +0800)
committerWill Deacon <will.deacon@arm.com>
Tue, 19 Apr 2016 08:52:51 +0000 (09:52 +0100)
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: Catalin Marinas <catalin.marinas@arm.com>
Signed-off-by: Huang Shijie <shijie.huang@arm.com>
Signed-off-by: Will Deacon <will.deacon@arm.com>
arch/arm64/mm/fault.c

index d24a5e0..5954881 100644 (file)
@@ -262,10 +262,6 @@ static int __kprobes do_page_fault(unsigned long addr, unsigned int esr,
        tsk = current;
        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
         * the fault.