summaryrefslogtreecommitdiff
path: root/mm
diff options
context:
space:
mode:
authorThomas Gleixner <tglx@linutronix.de>2009-07-25 20:06:27 (GMT)
committerScott Wood <scottwood@freescale.com>2015-02-13 22:20:11 (GMT)
commit8d2115a60c8bc79c839da535affa41468c49d995 (patch)
tree79e494c6e265932a9a24f1418f8e177f6136bb44 /mm
parentccd2402a5d07f0a3fe65136429185d495407b106 (diff)
downloadlinux-fsl-qoriq-8d2115a60c8bc79c839da535affa41468c49d995.tar.xz
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 01986a6..ea5ba0a 100644
--- a/mm/memory.c
+++ b/mm/memory.c
@@ -3750,7 +3750,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
@@ -3768,12 +3767,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