diff options
author | Catalin Marinas <catalin.marinas@arm.com> | 2013-05-01 11:38:23 -0400 |
---|---|---|
committer | Catalin Marinas <catalin.marinas@arm.com> | 2013-06-07 12:58:30 -0400 |
commit | ebd88367de80f9509bd30a09342d0a19c925b23e (patch) | |
tree | 32c41a487f3ccfd91fc532be216bf5db1234c5ff /arch | |
parent | 7249b79f6b4cc3c2aa9138dca52e535a4c789107 (diff) |
arm64: Remove __flush_dcache_page()
This function is only used in __sync_icache_dcache(), so remove it and
call __flush_dcache_area() directly. The flush_icache_user_range()
function is not used in the arm64 kernel.
Signed-off-by: Catalin Marinas <catalin.marinas@arm.com>
Reported-by: Will Deacon <will.deacon@arm.com>
Acked-by: Will Deacon <will.deacon@arm.com>
Diffstat (limited to 'arch')
-rw-r--r-- | arch/arm64/include/asm/cacheflush.h | 3 | ||||
-rw-r--r-- | arch/arm64/mm/flush.c | 7 | ||||
-rw-r--r-- | arch/arm64/mm/mm.h | 1 |
3 files changed, 1 insertions, 10 deletions
diff --git a/arch/arm64/include/asm/cacheflush.h b/arch/arm64/include/asm/cacheflush.h index 3300cbd18a89..fea9ee327206 100644 --- a/arch/arm64/include/asm/cacheflush.h +++ b/arch/arm64/include/asm/cacheflush.h | |||
@@ -123,9 +123,6 @@ static inline void __flush_icache_all(void) | |||
123 | #define flush_dcache_mmap_unlock(mapping) \ | 123 | #define flush_dcache_mmap_unlock(mapping) \ |
124 | spin_unlock_irq(&(mapping)->tree_lock) | 124 | spin_unlock_irq(&(mapping)->tree_lock) |
125 | 125 | ||
126 | #define flush_icache_user_range(vma,page,addr,len) \ | ||
127 | flush_dcache_page(page) | ||
128 | |||
129 | /* | 126 | /* |
130 | * We don't appear to need to do anything here. In fact, if we did, we'd | 127 | * We don't appear to need to do anything here. In fact, if we did, we'd |
131 | * duplicate cache flushing elsewhere performed by flush_dcache_page(). | 128 | * duplicate cache flushing elsewhere performed by flush_dcache_page(). |
diff --git a/arch/arm64/mm/flush.c b/arch/arm64/mm/flush.c index 7c716634a671..e4193e3adc7f 100644 --- a/arch/arm64/mm/flush.c +++ b/arch/arm64/mm/flush.c | |||
@@ -70,11 +70,6 @@ void copy_to_user_page(struct vm_area_struct *vma, struct page *page, | |||
70 | #endif | 70 | #endif |
71 | } | 71 | } |
72 | 72 | ||
73 | void __flush_dcache_page(struct page *page) | ||
74 | { | ||
75 | __flush_dcache_area(page_address(page), PAGE_SIZE); | ||
76 | } | ||
77 | |||
78 | void __sync_icache_dcache(pte_t pte, unsigned long addr) | 73 | void __sync_icache_dcache(pte_t pte, unsigned long addr) |
79 | { | 74 | { |
80 | struct page *page = pte_page(pte); | 75 | struct page *page = pte_page(pte); |
@@ -84,7 +79,7 @@ void __sync_icache_dcache(pte_t pte, unsigned long addr) | |||
84 | return; | 79 | return; |
85 | 80 | ||
86 | if (!test_and_set_bit(PG_dcache_clean, &page->flags)) { | 81 | if (!test_and_set_bit(PG_dcache_clean, &page->flags)) { |
87 | __flush_dcache_page(page); | 82 | __flush_dcache_area(page_address(page), PAGE_SIZE); |
88 | __flush_icache_all(); | 83 | __flush_icache_all(); |
89 | } else if (icache_is_aivivt()) { | 84 | } else if (icache_is_aivivt()) { |
90 | __flush_icache_all(); | 85 | __flush_icache_all(); |
diff --git a/arch/arm64/mm/mm.h b/arch/arm64/mm/mm.h index 916701e6d040..d519f4f50c8c 100644 --- a/arch/arm64/mm/mm.h +++ b/arch/arm64/mm/mm.h | |||
@@ -1,3 +1,2 @@ | |||
1 | extern void __flush_dcache_page(struct page *page); | ||
2 | extern void __init bootmem_init(void); | 1 | extern void __init bootmem_init(void); |
3 | extern void __init arm64_swiotlb_init(void); | 2 | extern void __init arm64_swiotlb_init(void); |