summaryrefslogtreecommitdiff
path: root/arch/frv
diff options
context:
space:
mode:
authorPeter Zijlstra <a.p.zijlstra@chello.nl>2011-08-11 15:31:31 +0200
committerSteven Rostedt <rostedt@rostedt.homelinux.com>2014-08-26 21:26:48 -0400
commit7416d4cb422537f84e56874a5e693edfc0297087 (patch)
tree7b2a7a49deae751f8f5083b4cfd3ea29481afd30 /arch/frv
parent7a3b39ec2a0de5cb8f7be7f9df02c43300b26bbb (diff)
downloadlinux-rt-7416d4cb422537f84e56874a5e693edfc0297087.tar.gz
mm: pagefault_disabled()
Wrap the test for pagefault_disabled() into a helper, this allows us to remove the need for current->pagefault_disabled on !-rt kernels. Signed-off-by: Peter Zijlstra <a.p.zijlstra@chello.nl> Link: http://lkml.kernel.org/n/tip-3yy517m8zsi9fpsf14xfaqkw@git.kernel.org
Diffstat (limited to 'arch/frv')
-rw-r--r--arch/frv/mm/fault.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/arch/frv/mm/fault.c b/arch/frv/mm/fault.c
index de6a23e26743..8d9fc16aa40b 100644
--- a/arch/frv/mm/fault.c
+++ b/arch/frv/mm/fault.c
@@ -78,7 +78,7 @@ asmlinkage void do_page_fault(int datammu, unsigned long esr0, unsigned long ear
* If we're in an interrupt or have no user
* context, we must not take the fault..
*/
- if (in_atomic() || !mm || current->pagefault_disabled)
+ if (!mm || pagefault_disabled())
goto no_context;
if (user_mode(__frame))