diff options
author | Martin Schwidefsky <schwidefsky@de.ibm.com> | 2007-07-17 07:03:03 -0400 |
---|---|---|
committer | Linus Torvalds <torvalds@woody.linux-foundation.org> | 2007-07-17 13:22:59 -0400 |
commit | e21ea246bce5bb93dd822de420172ec280aed492 (patch) | |
tree | d624d1257728d8d869d54420c83d4bf4c4e19189 /include/asm-xtensa | |
parent | f0e47c229b489e37ba7e4159ef7f9cf9ccd44e19 (diff) |
mm: remove ptep_test_and_clear_dirty and ptep_clear_flush_dirty
Nobody is using ptep_test_and_clear_dirty and ptep_clear_flush_dirty. Remove
the functions from all architectures.
Signed-off-by: Martin Schwidefsky <schwidefsky@de.ibm.com>
Cc: Hugh Dickins <hugh@veritas.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
Diffstat (limited to 'include/asm-xtensa')
-rw-r--r-- | include/asm-xtensa/pgtable.h | 12 |
1 files changed, 0 insertions, 12 deletions
diff --git a/include/asm-xtensa/pgtable.h b/include/asm-xtensa/pgtable.h index e9fc512cc247..06850f3b26a7 100644 --- a/include/asm-xtensa/pgtable.h +++ b/include/asm-xtensa/pgtable.h | |||
@@ -267,17 +267,6 @@ ptep_test_and_clear_young(struct vm_area_struct *vma, unsigned long addr, | |||
267 | return 1; | 267 | return 1; |
268 | } | 268 | } |
269 | 269 | ||
270 | static inline int | ||
271 | ptep_test_and_clear_dirty(struct vm_area_struct *vma, unsigned long addr, | ||
272 | pte_t *ptep) | ||
273 | { | ||
274 | pte_t pte = *ptep; | ||
275 | if (!pte_dirty(pte)) | ||
276 | return 0; | ||
277 | update_pte(ptep, pte_mkclean(pte)); | ||
278 | return 1; | ||
279 | } | ||
280 | |||
281 | static inline pte_t | 270 | static inline pte_t |
282 | ptep_get_and_clear(struct mm_struct *mm, unsigned long addr, pte_t *ptep) | 271 | ptep_get_and_clear(struct mm_struct *mm, unsigned long addr, pte_t *ptep) |
283 | { | 272 | { |
@@ -418,7 +407,6 @@ typedef pte_t *pte_addr_t; | |||
418 | #endif /* !defined (__ASSEMBLY__) */ | 407 | #endif /* !defined (__ASSEMBLY__) */ |
419 | 408 | ||
420 | #define __HAVE_ARCH_PTEP_TEST_AND_CLEAR_YOUNG | 409 | #define __HAVE_ARCH_PTEP_TEST_AND_CLEAR_YOUNG |
421 | #define __HAVE_ARCH_PTEP_TEST_AND_CLEAR_DIRTY | ||
422 | #define __HAVE_ARCH_PTEP_GET_AND_CLEAR | 410 | #define __HAVE_ARCH_PTEP_GET_AND_CLEAR |
423 | #define __HAVE_ARCH_PTEP_SET_WRPROTECT | 411 | #define __HAVE_ARCH_PTEP_SET_WRPROTECT |
424 | #define __HAVE_ARCH_PTEP_MKDIRTY | 412 | #define __HAVE_ARCH_PTEP_MKDIRTY |