diff options
author | Matt Fleming <matt@console-pimps.org> | 2009-10-29 17:53:30 -0400 |
---|---|---|
committer | Paul Mundt <lethal@linux-sh.org> | 2009-10-29 22:53:22 -0400 |
commit | eb3118f652ea7751ecf6a7e467bb637895e3be3b (patch) | |
tree | c4ab1d9c903842dcdd812e52a0ea80af6986dd71 /arch/sh/mm/cache-sh4.c | |
parent | 1d317f90d97ca8e539939ee896bd04c7efe936ca (diff) |
sh: Do not apply virt_to_phys() to a physical address
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>
Diffstat (limited to 'arch/sh/mm/cache-sh4.c')
-rw-r--r-- | arch/sh/mm/cache-sh4.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/arch/sh/mm/cache-sh4.c b/arch/sh/mm/cache-sh4.c index 4a2fbf2864de..b5abe949c6ed 100644 --- a/arch/sh/mm/cache-sh4.c +++ b/arch/sh/mm/cache-sh4.c | |||
@@ -95,8 +95,7 @@ static inline void flush_cache_one(unsigned long start, unsigned long phys) | |||
95 | exec_offset = cached_to_uncached; | 95 | exec_offset = cached_to_uncached; |
96 | 96 | ||
97 | local_irq_save(flags); | 97 | local_irq_save(flags); |
98 | __flush_cache_one(start | SH_CACHE_ASSOC, | 98 | __flush_cache_one(start | SH_CACHE_ASSOC, phys, exec_offset); |
99 | virt_to_phys(phys), exec_offset); | ||
100 | local_irq_restore(flags); | 99 | local_irq_restore(flags); |
101 | } | 100 | } |
102 | 101 | ||