summaryrefslogtreecommitdiff
path: root/mm
diff options
context:
space:
mode:
authorThomas Gleixner <tglx@linutronix.de>2009-07-25 22:06:27 +0200
committerClark Williams <williams@redhat.com>2012-04-13 11:01:20 -0500
commit6aa66e355d419f8744c9d7898230ba038c841b10 (patch)
tree0abca01b02d416376d46016dc0647b7e837b1b66 /mm
parentf6c51ca2f407aed73e1ef7578dd40b679a7d96b7 (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 e996afebe7e0..346246c80533 100644
--- a/mm/memory.c
+++ b/mm/memory.c
@@ -3470,7 +3470,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
@@ -3488,12 +3487,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