diff options
author | Paul Mundt <lethal@linux-sh.org> | 2009-09-03 17:21:10 +0900 |
---|---|---|
committer | Paul Mundt <lethal@linux-sh.org> | 2009-09-03 17:21:10 +0900 |
commit | 0906a3ad33a254094fb74828e3ddb9af8771a6da (patch) | |
tree | 33acc1be2e213ae2f13439d3d5f8e9dd8a4f2d46 /arch/sh/include/asm/cacheflush.h | |
parent | d1af119a69fc9a625bd57a66d9c9fa88795b082c (diff) | |
download | linux-0906a3ad33a254094fb74828e3ddb9af8771a6da.tar.bz2 |
sh: Fix up and optimize the kmap_coherent() interface.
This fixes up the kmap_coherent/kunmap_coherent() interface for recent
changes both in the page fault path and the shared cache flushers, as
well as adding in some optimizations.
One of the key things to note here is that the TLB flush itself is
deferred until the unmap, and the call in to update_mmu_cache() itself
goes away, relying on the regular page fault path to handle the lazy
dcache writeback if necessary.
Signed-off-by: Paul Mundt <lethal@linux-sh.org>
Diffstat (limited to 'arch/sh/include/asm/cacheflush.h')
-rw-r--r-- | arch/sh/include/asm/cacheflush.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/arch/sh/include/asm/cacheflush.h b/arch/sh/include/asm/cacheflush.h index 11e416630585..c29918f3c819 100644 --- a/arch/sh/include/asm/cacheflush.h +++ b/arch/sh/include/asm/cacheflush.h @@ -85,7 +85,7 @@ extern void copy_from_user_page(struct vm_area_struct *vma, void kmap_coherent_init(void); void *kmap_coherent(struct page *page, unsigned long addr); -void kunmap_coherent(void); +void kunmap_coherent(void *kvaddr); #define PG_dcache_dirty PG_arch_1 |