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>2011-12-28 16:25:23 -0600
commitfc71829157fd95e7114e6be229e27088a57415e7 (patch)
tree55c3dc94fd8f346565623ba27830fc44536f5102 /mm
parent4f827de6ef0e0745c189e726c5b1cfd90c2455fb (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 e93031baaeb6..e09ca9b19492 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