Skip to content

Commit

Permalink
sh: Do not apply virt_to_phys() to a physical address
Browse files Browse the repository at this point in the history
The variable 'phys' already contains the physical address to flush. It
is not a virtual address and should not be passed to virt_to_phys().

Signed-off-by: Matt Fleming <matt@console-pimps.org>
Signed-off-by: Paul Mundt <lethal@linux-sh.org>
  • Loading branch information
Matt Fleming authored and Paul Mundt committed Oct 30, 2009
1 parent 1d317f9 commit eb3118f
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions arch/sh/mm/cache-sh4.c
Original file line number Diff line number Diff line change
Expand Up @@ -95,8 +95,7 @@ static inline void flush_cache_one(unsigned long start, unsigned long phys)
exec_offset = cached_to_uncached;

local_irq_save(flags);
__flush_cache_one(start | SH_CACHE_ASSOC,
virt_to_phys(phys), exec_offset);
__flush_cache_one(start | SH_CACHE_ASSOC, phys, exec_offset);
local_irq_restore(flags);
}

Expand Down

0 comments on commit eb3118f

Please sign in to comment.