diff options
Diffstat (limited to 'include/asm-generic/pgtable.h')
-rw-r--r-- | include/asm-generic/pgtable.h | 25 |
1 files changed, 0 insertions, 25 deletions
diff --git a/include/asm-generic/pgtable.h b/include/asm-generic/pgtable.h index aa3f1202a177..f605e8d0eed3 100644 --- a/include/asm-generic/pgtable.h +++ b/include/asm-generic/pgtable.h | |||
@@ -49,31 +49,6 @@ | |||
49 | }) | 49 | }) |
50 | #endif | 50 | #endif |
51 | 51 | ||
52 | #ifndef __HAVE_ARCH_PTEP_TEST_AND_CLEAR_DIRTY | ||
53 | #define ptep_test_and_clear_dirty(__vma, __address, __ptep) \ | ||
54 | ({ \ | ||
55 | pte_t __pte = *__ptep; \ | ||
56 | int r = 1; \ | ||
57 | if (!pte_dirty(__pte)) \ | ||
58 | r = 0; \ | ||
59 | else \ | ||
60 | set_pte_at((__vma)->vm_mm, (__address), (__ptep), \ | ||
61 | pte_mkclean(__pte)); \ | ||
62 | r; \ | ||
63 | }) | ||
64 | #endif | ||
65 | |||
66 | #ifndef __HAVE_ARCH_PTEP_CLEAR_DIRTY_FLUSH | ||
67 | #define ptep_clear_flush_dirty(__vma, __address, __ptep) \ | ||
68 | ({ \ | ||
69 | int __dirty; \ | ||
70 | __dirty = ptep_test_and_clear_dirty(__vma, __address, __ptep); \ | ||
71 | if (__dirty) \ | ||
72 | flush_tlb_page(__vma, __address); \ | ||
73 | __dirty; \ | ||
74 | }) | ||
75 | #endif | ||
76 | |||
77 | #ifndef __HAVE_ARCH_PTEP_GET_AND_CLEAR | 52 | #ifndef __HAVE_ARCH_PTEP_GET_AND_CLEAR |
78 | #define ptep_get_and_clear(__mm, __address, __ptep) \ | 53 | #define ptep_get_and_clear(__mm, __address, __ptep) \ |
79 | ({ \ | 54 | ({ \ |