mirror of
https://github.com/raspberrypi/linux.git
synced 2026-01-04 18:27:36 +00:00
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>
This commit is contained in:
@@ -123,9 +123,6 @@ static inline void __flush_icache_all(void)
|
|||||||
#define flush_dcache_mmap_unlock(mapping) \
|
#define flush_dcache_mmap_unlock(mapping) \
|
||||||
spin_unlock_irq(&(mapping)->tree_lock)
|
spin_unlock_irq(&(mapping)->tree_lock)
|
||||||
|
|
||||||
#define flush_icache_user_range(vma,page,addr,len) \
|
|
||||||
flush_dcache_page(page)
|
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* We don't appear to need to do anything here. In fact, if we did, we'd
|
* We don't appear to need to do anything here. In fact, if we did, we'd
|
||||||
* duplicate cache flushing elsewhere performed by flush_dcache_page().
|
* duplicate cache flushing elsewhere performed by flush_dcache_page().
|
||||||
|
|||||||
@@ -70,11 +70,6 @@ void copy_to_user_page(struct vm_area_struct *vma, struct page *page,
|
|||||||
#endif
|
#endif
|
||||||
}
|
}
|
||||||
|
|
||||||
void __flush_dcache_page(struct page *page)
|
|
||||||
{
|
|
||||||
__flush_dcache_area(page_address(page), PAGE_SIZE);
|
|
||||||
}
|
|
||||||
|
|
||||||
void __sync_icache_dcache(pte_t pte, unsigned long addr)
|
void __sync_icache_dcache(pte_t pte, unsigned long addr)
|
||||||
{
|
{
|
||||||
struct page *page = pte_page(pte);
|
struct page *page = pte_page(pte);
|
||||||
@@ -84,7 +79,7 @@ void __sync_icache_dcache(pte_t pte, unsigned long addr)
|
|||||||
return;
|
return;
|
||||||
|
|
||||||
if (!test_and_set_bit(PG_dcache_clean, &page->flags)) {
|
if (!test_and_set_bit(PG_dcache_clean, &page->flags)) {
|
||||||
__flush_dcache_page(page);
|
__flush_dcache_area(page_address(page), PAGE_SIZE);
|
||||||
__flush_icache_all();
|
__flush_icache_all();
|
||||||
} else if (icache_is_aivivt()) {
|
} else if (icache_is_aivivt()) {
|
||||||
__flush_icache_all();
|
__flush_icache_all();
|
||||||
|
|||||||
@@ -1,3 +1,2 @@
|
|||||||
extern void __flush_dcache_page(struct page *page);
|
|
||||||
extern void __init bootmem_init(void);
|
extern void __init bootmem_init(void);
|
||||||
extern void __init arm64_swiotlb_init(void);
|
extern void __init arm64_swiotlb_init(void);
|
||||||
|
|||||||
Reference in New Issue
Block a user