diff options
author | Linus Torvalds <torvalds@linux-foundation.org> | 2011-01-18 11:06:22 -0500 |
---|---|---|
committer | Linus Torvalds <torvalds@linux-foundation.org> | 2011-01-18 11:06:22 -0500 |
commit | a25cecce88194b2edf38b8c3b1665e9318eb2d22 (patch) | |
tree | 9eb4768dfdba01e5c0b47b1ab4931d5d2380da3c | |
parent | b7c15e4a1cbf19be3d3063819b472806902fb525 (diff) | |
parent | 658b368da198a1436c7d6a0f1f4029d3c6e30b20 (diff) |
Merge branch 'next' of git://git.monstr.eu/linux-2.6-microblaze
* 'next' of git://git.monstr.eu/linux-2.6-microblaze:
microblaze: Fix asm/pgtable.h
microblaze: Fix missing pagemap.h
-rw-r--r-- | arch/microblaze/include/asm/pgtable.h | 6 | ||||
-rw-r--r-- | arch/microblaze/include/asm/tlb.h | 1 |
2 files changed, 5 insertions, 2 deletions
diff --git a/arch/microblaze/include/asm/pgtable.h b/arch/microblaze/include/asm/pgtable.h index cae268c22ba2..b23f68075879 100644 --- a/arch/microblaze/include/asm/pgtable.h +++ b/arch/microblaze/include/asm/pgtable.h | |||
@@ -444,8 +444,9 @@ static inline void set_pte_at(struct mm_struct *mm, unsigned long addr, | |||
444 | *ptep = pte; | 444 | *ptep = pte; |
445 | } | 445 | } |
446 | 446 | ||
447 | static inline int ptep_test_and_clear_young(struct mm_struct *mm, | 447 | #define __HAVE_ARCH_PTEP_TEST_AND_CLEAR_YOUNG |
448 | unsigned long addr, pte_t *ptep) | 448 | static inline int ptep_test_and_clear_young(struct vm_area_struct *vma, |
449 | unsigned long address, pte_t *ptep) | ||
449 | { | 450 | { |
450 | return (pte_update(ptep, _PAGE_ACCESSED, 0) & _PAGE_ACCESSED) != 0; | 451 | return (pte_update(ptep, _PAGE_ACCESSED, 0) & _PAGE_ACCESSED) != 0; |
451 | } | 452 | } |
@@ -457,6 +458,7 @@ static inline int ptep_test_and_clear_dirty(struct mm_struct *mm, | |||
457 | (_PAGE_DIRTY | _PAGE_HWWRITE), 0) & _PAGE_DIRTY) != 0; | 458 | (_PAGE_DIRTY | _PAGE_HWWRITE), 0) & _PAGE_DIRTY) != 0; |
458 | } | 459 | } |
459 | 460 | ||
461 | #define __HAVE_ARCH_PTEP_GET_AND_CLEAR | ||
460 | static inline pte_t ptep_get_and_clear(struct mm_struct *mm, | 462 | static inline pte_t ptep_get_and_clear(struct mm_struct *mm, |
461 | unsigned long addr, pte_t *ptep) | 463 | unsigned long addr, pte_t *ptep) |
462 | { | 464 | { |
diff --git a/arch/microblaze/include/asm/tlb.h b/arch/microblaze/include/asm/tlb.h index e8abd4a0349c..8aa97817cc8c 100644 --- a/arch/microblaze/include/asm/tlb.h +++ b/arch/microblaze/include/asm/tlb.h | |||
@@ -13,6 +13,7 @@ | |||
13 | 13 | ||
14 | #define tlb_flush(tlb) flush_tlb_mm((tlb)->mm) | 14 | #define tlb_flush(tlb) flush_tlb_mm((tlb)->mm) |
15 | 15 | ||
16 | #include <linux/pagemap.h> | ||
16 | #include <asm-generic/tlb.h> | 17 | #include <asm-generic/tlb.h> |
17 | 18 | ||
18 | #ifdef CONFIG_MMU | 19 | #ifdef CONFIG_MMU |