diff options
Diffstat (limited to 'include/asm-i386/pgtable.h')
-rw-r--r-- | include/asm-i386/pgtable.h | 21 |
1 files changed, 0 insertions, 21 deletions
diff --git a/include/asm-i386/pgtable.h b/include/asm-i386/pgtable.h index afb1597ec173..c7fefa6b12fd 100644 --- a/include/asm-i386/pgtable.h +++ b/include/asm-i386/pgtable.h | |||
@@ -289,17 +289,6 @@ static inline pte_t native_local_ptep_get_and_clear(pte_t *ptep) | |||
289 | __changed; \ | 289 | __changed; \ |
290 | }) | 290 | }) |
291 | 291 | ||
292 | #define __HAVE_ARCH_PTEP_TEST_AND_CLEAR_DIRTY | ||
293 | #define ptep_test_and_clear_dirty(vma, addr, ptep) ({ \ | ||
294 | int __ret = 0; \ | ||
295 | if (pte_dirty(*(ptep))) \ | ||
296 | __ret = test_and_clear_bit(_PAGE_BIT_DIRTY, \ | ||
297 | &(ptep)->pte_low); \ | ||
298 | if (__ret) \ | ||
299 | pte_update((vma)->vm_mm, addr, ptep); \ | ||
300 | __ret; \ | ||
301 | }) | ||
302 | |||
303 | #define __HAVE_ARCH_PTEP_TEST_AND_CLEAR_YOUNG | 292 | #define __HAVE_ARCH_PTEP_TEST_AND_CLEAR_YOUNG |
304 | #define ptep_test_and_clear_young(vma, addr, ptep) ({ \ | 293 | #define ptep_test_and_clear_young(vma, addr, ptep) ({ \ |
305 | int __ret = 0; \ | 294 | int __ret = 0; \ |
@@ -311,16 +300,6 @@ static inline pte_t native_local_ptep_get_and_clear(pte_t *ptep) | |||
311 | __ret; \ | 300 | __ret; \ |
312 | }) | 301 | }) |
313 | 302 | ||
314 | #define __HAVE_ARCH_PTEP_CLEAR_DIRTY_FLUSH | ||
315 | #define ptep_clear_flush_dirty(vma, address, ptep) \ | ||
316 | ({ \ | ||
317 | int __dirty; \ | ||
318 | __dirty = ptep_test_and_clear_dirty((vma), (address), (ptep)); \ | ||
319 | if (__dirty) \ | ||
320 | flush_tlb_page(vma, address); \ | ||
321 | __dirty; \ | ||
322 | }) | ||
323 | |||
324 | #define __HAVE_ARCH_PTEP_CLEAR_YOUNG_FLUSH | 303 | #define __HAVE_ARCH_PTEP_CLEAR_YOUNG_FLUSH |
325 | #define ptep_clear_flush_young(vma, address, ptep) \ | 304 | #define ptep_clear_flush_young(vma, address, ptep) \ |
326 | ({ \ | 305 | ({ \ |