diff options
author | Jeremy Fitzhardinge <jeremy@goop.org> | 2008-03-17 19:37:05 -0400 |
---|---|---|
committer | Ingo Molnar <mingo@elte.hu> | 2008-04-24 17:57:31 -0400 |
commit | c20311e165eb94f5ef12b15e452cc6ec24bd7813 (patch) | |
tree | 2f3d452b2d0250a76925058c5b085d4f7bdfa650 /arch/x86/mm/pgtable.c | |
parent | f9fbf1a36a6bb6a639459802bccee01185ee3220 (diff) |
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/pgtable.c')
-rw-r--r-- | arch/x86/mm/pgtable.c | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/arch/x86/mm/pgtable.c b/arch/x86/mm/pgtable.c index 54bd77a7eee0..af0c50161d95 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, | |||
295 | 295 | ||
296 | return ret; | 296 | return ret; |
297 | } | 297 | } |
298 | |||
299 | int ptep_clear_flush_young(struct vm_area_struct *vma, | ||
300 | unsigned long address, pte_t *ptep) | ||
301 | { | ||
302 | int young; | ||
303 | |||
304 | young = ptep_test_and_clear_young(vma, address, ptep); | ||
305 | if (young) | ||
306 | flush_tlb_page(vma, address); | ||
307 | |||
308 | return young; | ||
309 | } | ||