diff options
Diffstat (limited to 'arch/sparc/mm/fault_32.c')
-rw-r--r-- | arch/sparc/mm/fault_32.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/arch/sparc/mm/fault_32.c b/arch/sparc/mm/fault_32.c index 70d817154fe8..c399e7b3b035 100644 --- a/arch/sparc/mm/fault_32.c +++ b/arch/sparc/mm/fault_32.c | |||
@@ -21,6 +21,7 @@ | |||
21 | #include <linux/perf_event.h> | 21 | #include <linux/perf_event.h> |
22 | #include <linux/interrupt.h> | 22 | #include <linux/interrupt.h> |
23 | #include <linux/kdebug.h> | 23 | #include <linux/kdebug.h> |
24 | #include <linux/uaccess.h> | ||
24 | 25 | ||
25 | #include <asm/page.h> | 26 | #include <asm/page.h> |
26 | #include <asm/pgtable.h> | 27 | #include <asm/pgtable.h> |
@@ -29,7 +30,6 @@ | |||
29 | #include <asm/setup.h> | 30 | #include <asm/setup.h> |
30 | #include <asm/smp.h> | 31 | #include <asm/smp.h> |
31 | #include <asm/traps.h> | 32 | #include <asm/traps.h> |
32 | #include <asm/uaccess.h> | ||
33 | 33 | ||
34 | #include "mm_32.h" | 34 | #include "mm_32.h" |
35 | 35 | ||
@@ -196,7 +196,7 @@ asmlinkage void do_sparc_fault(struct pt_regs *regs, int text_fault, int write, | |||
196 | * If we're in an interrupt or have no user | 196 | * If we're in an interrupt or have no user |
197 | * context, we must not take the fault.. | 197 | * context, we must not take the fault.. |
198 | */ | 198 | */ |
199 | if (in_atomic() || !mm) | 199 | if (pagefault_disabled() || !mm) |
200 | goto no_context; | 200 | goto no_context; |
201 | 201 | ||
202 | perf_sw_event(PERF_COUNT_SW_PAGE_FAULTS, 1, regs, address); | 202 | perf_sw_event(PERF_COUNT_SW_PAGE_FAULTS, 1, regs, address); |