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>hifive-unleashed-5.1
parent
f9fbf1a36a
commit
c20311e165
|
@ -295,3 +295,15 @@ int ptep_test_and_clear_young(struct vm_area_struct *vma,
|
||||||
|
|
||||||
return ret;
|
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;
|
||||||
|
}
|
||||||
|
|
|
@ -398,14 +398,8 @@ extern int ptep_test_and_clear_young(struct vm_area_struct *vma,
|
||||||
unsigned long addr, pte_t *ptep);
|
unsigned long addr, pte_t *ptep);
|
||||||
|
|
||||||
#define __HAVE_ARCH_PTEP_CLEAR_YOUNG_FLUSH
|
#define __HAVE_ARCH_PTEP_CLEAR_YOUNG_FLUSH
|
||||||
#define ptep_clear_flush_young(vma, address, ptep) \
|
extern 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); \
|
|
||||||
__young; \
|
|
||||||
})
|
|
||||||
|
|
||||||
#define __HAVE_ARCH_PTEP_GET_AND_CLEAR
|
#define __HAVE_ARCH_PTEP_GET_AND_CLEAR
|
||||||
static inline pte_t ptep_get_and_clear(struct mm_struct *mm, unsigned long addr,
|
static inline pte_t ptep_get_and_clear(struct mm_struct *mm, unsigned long addr,
|
||||||
|
|
Loading…
Reference in New Issue