Skip to content

Commit b07f6b3

Browse files
committed
sh: Fix up flush_cache_vmap() on SMP.
flush_cache_all() uses broadcast IPIs, so we can't wrap in to that when IRQs are disabled. The local cache flush manages to do what we need here anyways, so just switch to that. Signed-off-by: Paul Mundt <lethal@linux-sh.org>
1 parent 281983d commit b07f6b3

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

‎arch/sh/include/asm/cacheflush.h‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -86,8 +86,8 @@ extern void copy_from_user_page(struct vm_area_struct *vma,
8686
struct page *page, unsigned long vaddr, void *dst, const void *src,
8787
unsigned long len);
8888

89-
#define flush_cache_vmap(start, end) flush_cache_all()
90-
#define flush_cache_vunmap(start, end) flush_cache_all()
89+
#define flush_cache_vmap(start, end) local_flush_cache_all(NULL)
90+
#define flush_cache_vunmap(start, end) local_flush_cache_all(NULL)
9191

9292
#define flush_dcache_mmap_lock(mapping) do { } while (0)
9393
#define flush_dcache_mmap_unlock(mapping) do { } while (0)

0 commit comments

Comments
 (0)