aboutsummaryrefslogtreecommitdiff
path: root/mm
diff options
context:
space:
mode:
authorThomas Gleixner <tglx@linutronix.de>2009-07-25 22:06:27 +0200
committerSteven Rostedt <rostedt@rostedt.homelinux.com>2012-10-08 14:44:47 -0400
commitf1c070b5ccbdb25b02ba341b08d829920b548d26 (patch)
treea276c89a55023f4590ea0dd7c6d817eefa20e8bd /mm
parent9d488a67193c6c6db0abb9baeeec9447737aed46 (diff)
mm: Remove preempt count from pagefault disable/enable
Now that all users are cleaned up, we can remove the preemption count. Signed-off-by: Thomas Gleixner <tglx@linutronix.de>
Diffstat (limited to 'mm')
-rw-r--r--mm/memory.c7
1 files changed, 0 insertions, 7 deletions
diff --git a/mm/memory.c b/mm/memory.c
index 30bf85ca9c38..2a152542a81a 100644
--- a/mm/memory.c
+++ b/mm/memory.c
@@ -3439,7 +3439,6 @@ unlock:
#ifdef CONFIG_PREEMPT_RT_FULL
void pagefault_disable(void)
{
- inc_preempt_count();
current->pagefault_disabled++;
/*
* make sure to have issued the store before a pagefault
@@ -3457,12 +3456,6 @@ void pagefault_enable(void)
*/
barrier();
current->pagefault_disabled--;
- dec_preempt_count();
- /*
- * make sure we do..
- */
- barrier();
- preempt_check_resched();
}
EXPORT_SYMBOL_GPL(pagefault_enable);
#endif