aboutsummaryrefslogtreecommitdiff
path: root/arch/tile
diff options
context:
space:
mode:
authorPeter Zijlstra <a.p.zijlstra@chello.nl>2011-08-11 15:31:31 +0200
committerAnders Roxell <anders.roxell@linaro.org>2014-06-30 14:34:02 +0200
commitf018872bbb112eb505887d9a9034d55bc511aae5 (patch)
tree136b35071ac20a5c2b03e48014bf7bcedd189abf /arch/tile
parentf23af59ca20ff637de217c5bbbca02810e48e4a8 (diff)
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 Signed-off-by: Anders Roxell <anders.roxell@linaro.org>
Diffstat (limited to 'arch/tile')
-rw-r--r--arch/tile/mm/fault.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/arch/tile/mm/fault.c b/arch/tile/mm/fault.c
index d28fe5abca34..40f30ac4ece0 100644
--- a/arch/tile/mm/fault.c
+++ b/arch/tile/mm/fault.c
@@ -357,7 +357,7 @@ static int handle_page_fault(struct pt_regs *regs,
* If we're in an interrupt, have no user context or are running in an
* atomic region then we must not take the fault.
*/
- if (in_atomic() || !mm || current->pagefault_disabled) {
+ if (!mm || pagefault_disabled()) {
vma = NULL; /* happy compiler */
goto bad_area_nosemaphore;
}