aboutsummaryrefslogtreecommitdiffstats
path: root/arch/xtensa/mm/fault.c
diff options
context:
space:
mode:
Diffstat (limited to 'arch/xtensa/mm/fault.c')
-rw-r--r--arch/xtensa/mm/fault.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/arch/xtensa/mm/fault.c b/arch/xtensa/mm/fault.c
index 9e3571a6535c..83a44a33cfa1 100644
--- a/arch/xtensa/mm/fault.c
+++ b/arch/xtensa/mm/fault.c
@@ -15,10 +15,10 @@
15#include <linux/mm.h> 15#include <linux/mm.h>
16#include <linux/module.h> 16#include <linux/module.h>
17#include <linux/hardirq.h> 17#include <linux/hardirq.h>
18#include <linux/uaccess.h>
18#include <asm/mmu_context.h> 19#include <asm/mmu_context.h>
19#include <asm/cacheflush.h> 20#include <asm/cacheflush.h>
20#include <asm/hardirq.h> 21#include <asm/hardirq.h>
21#include <asm/uaccess.h>
22#include <asm/pgalloc.h> 22#include <asm/pgalloc.h>
23 23
24DEFINE_PER_CPU(unsigned long, asid_cache) = ASID_USER_FIRST; 24DEFINE_PER_CPU(unsigned long, asid_cache) = ASID_USER_FIRST;
@@ -57,7 +57,7 @@ void do_page_fault(struct pt_regs *regs)
57 /* If we're in an interrupt or have no user 57 /* If we're in an interrupt or have no user
58 * context, we must not take the fault.. 58 * context, we must not take the fault..
59 */ 59 */
60 if (in_atomic() || !mm) { 60 if (faulthandler_disabled() || !mm) {
61 bad_page_fault(regs, address, SIGSEGV); 61 bad_page_fault(regs, address, SIGSEGV);
62 return; 62 return;
63 } 63 }