linux/debian/patches/features/all/rt/0051-mm-Remove-preempt-coun...

42 lines
1003 B
Diff

From f7459d07318f682ab2718c16381850151938d439 Mon Sep 17 00:00:00 2001
From: Thomas Gleixner <tglx@linutronix.de>
Date: Sat, 25 Jul 2009 22:06:27 +0200
Subject: [PATCH 051/282] 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>
---
mm/memory.c | 7 -------
1 file changed, 7 deletions(-)
diff --git a/mm/memory.c b/mm/memory.c
index a3f7ed8..7fa62d9 100644
--- a/mm/memory.c
+++ b/mm/memory.c
@@ -3447,7 +3447,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
@@ -3465,12 +3464,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
--
1.7.10