Revert "Using do_page_fault for section fault handling"
authorGrazvydas Ignotas <notasas@gmail.com>
Wed, 6 Feb 2013 16:02:29 +0000 (18:02 +0200)
committerGrazvydas Ignotas <notasas@gmail.com>
Wed, 20 Feb 2013 21:19:19 +0000 (23:19 +0200)
This reverts commit ac24f0f22b6aa33f001f6fea8330f389846072ea.

arch/arm/mm/fault.c

index 0ba09e5..4b0bc37 100644 (file)
@@ -19,7 +19,6 @@
 #include <linux/sched.h>
 #include <linux/highmem.h>
 #include <linux/perf_event.h>
-#include <linux/hugetlb.h>
 
 #include <asm/exception.h>
 #include <asm/system.h>
@@ -472,7 +471,6 @@ do_translation_fault(unsigned long addr, unsigned int fsr,
 }
 #endif                                 /* CONFIG_MMU */
 
-#ifndef CONFIG_ARM_HUGETLB_SUPPORT
 /*
  * Some section permission faults need to be handled gracefully.
  * They can happen due to a __{get,put}_user during an oops.
@@ -484,19 +482,6 @@ do_sect_fault(unsigned long addr, unsigned int fsr, struct pt_regs *regs)
        return 0;
 }
 
-#else
-
-/* Since normal 4K page based vma will never fault into section traps,
- * This will enable us to use do_page_fault for section permission fault.
- */
-static int
-do_sect_fault(unsigned long addr, unsigned int fsr, struct pt_regs *regs)
-{
-       do_page_fault(addr, fsr, regs);
-       return 0;
-}
-#endif
-
 /*
  * This abort handler always returns "fault".
  */