summaryrefslogtreecommitdiffstats
path: root/arch/x86/mm
diff options
context:
space:
mode:
authorJeremy Fitzhardinge <jeremy@goop.org>2008-03-17 16:37:05 -0700
committerIngo Molnar <mingo@elte.hu>2008-04-24 23:57:31 +0200
commitc20311e165eb94f5ef12b15e452cc6ec24bd7813 (patch)
tree2f3d452b2d0250a76925058c5b085d4f7bdfa650 /arch/x86/mm
parentf9fbf1a36a6bb6a639459802bccee01185ee3220 (diff)
downloadop-kernel-dev-c20311e165eb94f5ef12b15e452cc6ec24bd7813.zip
op-kernel-dev-c20311e165eb94f5ef12b15e452cc6ec24bd7813.tar.gz
x86/pgtable.h: demacro ptep_clear_flush_young
Signed-off-by: Jeremy Fitzhardinge <jeremy.fitzhardinge@citrix.com> Signed-off-by: Ingo Molnar <mingo@elte.hu> Signed-off-by: Thomas Gleixner <tglx@linutronix.de>
Diffstat (limited to 'arch/x86/mm')
-rw-r--r--arch/x86/mm/pgtable.c12
1 files changed, 12 insertions, 0 deletions
diff --git a/arch/x86/mm/pgtable.c b/arch/x86/mm/pgtable.c
index 54bd77a..af0c501 100644
--- a/arch/x86/mm/pgtable.c
+++ b/arch/x86/mm/pgtable.c
@@ -295,3 +295,15 @@ int ptep_test_and_clear_young(struct vm_area_struct *vma,
return ret;
}
+
+int ptep_clear_flush_young(struct vm_area_struct *vma,
+ unsigned long address, pte_t *ptep)
+{
+ int young;
+
+ young = ptep_test_and_clear_young(vma, address, ptep);
+ if (young)
+ flush_tlb_page(vma, address);
+
+ return young;
+}
OpenPOWER on IntegriCloud