Commit 28ff874f authored by Paul Mundt's avatar Paul Mundt Committed by David S. Miller

[SH]: Cache flush simplifications after flush_cache_page() arg change.

Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
parent 890cb819
......@@ -357,7 +357,6 @@ void flush_cache_range(struct vm_area_struct *vma, unsigned long start,
void flush_icache_user_range(struct vm_area_struct *vma,
struct page *page, unsigned long addr, int len)
{
__flush_cache_page(vma, addr,
PHYSADDR(page_address(page)) >> PAGE_SHIFT);
flush_cache_page(vma, addr, page_to_pfn(page));
}
......@@ -573,11 +573,6 @@ static void sh64_dcache_purge_phy_page(unsigned long paddr)
}
}
static inline void sh64_dcache_purge_virt_page(struct mm_struct *mm, unsigned long eaddr, unsigned long pfn)
{
sh64_dcache_purge_phy_page(pfn << PAGE_SHIFT);
}
static void sh64_dcache_purge_user_page(struct mm_struct *mm, unsigned long eaddr)
{
pgd_t *pgd;
......@@ -895,7 +890,7 @@ void flush_cache_page(struct vm_area_struct *vma, unsigned long eaddr, unsigned
Note(1), this is called with mm->page_table_lock held.
*/
sh64_dcache_purge_virt_page(vma->vm_mm, eaddr, pfn);
sh64_dcache_purge_phy_page(pfn << PAGE_SHIFT);
if (vma->vm_flags & VM_EXEC) {
sh64_icache_inv_user_page(vma, eaddr);
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment