aboutsummaryrefslogtreecommitdiff
path: root/mm
diff options
context:
space:
mode:
authorThomas Gleixner <tglx@linutronix.de>2009-07-25 22:06:27 +0200
committerSteven Rostedt <rostedt@goodmis.org>2013-08-13 16:08:34 -0400
commite264d0f5f883c45c5bf3dd776117bbed8730dbfa (patch)
tree27582b78193e58071f2b532bd481074efb283913 /mm
parenteaa63f1f8b285f5ad3c82344d76bf1f3b94151a7 (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 f52c02334851..cb7094f6e8c2 100644
--- a/mm/memory.c
+++ b/mm/memory.c
@@ -3720,7 +3720,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
@@ -3738,12 +3737,6 @@ void pagefault_enable(void)
*/
barrier();
current->pagefault_disabled--;
- dec_preempt_count();
- /*
- * make sure we do..
- */
- barrier();
- preempt_check_resched();
}
EXPORT_SYMBOL(pagefault_enable);
#endif