summaryrefslogtreecommitdiffstats
path: root/arch/sh
diff options
context:
space:
mode:
authorMatt Fleming <matt@console-pimps.org>2009-12-08 14:23:11 +0000
committerPaul Mundt <lethal@linux-sh.org>2009-12-09 12:34:46 +0900
commite717cc6c07f006be36e35189aacb28be4e30ad14 (patch)
tree781f264a9a0071c8b32a4ccb6d29482c90cb8b2d /arch/sh
parent6a5a0b9139b19dd1a107870269a35bc9cf18d2dc (diff)
downloadblackbird-op-linux-e717cc6c07f006be36e35189aacb28be4e30ad14.tar.gz
blackbird-op-linux-e717cc6c07f006be36e35189aacb28be4e30ad14.zip
sh: Can't compare physical and virtual addresses for aliases
It does not make sense to compare virtual and physical addresses for aliasing, only virtual addresses can be compared for aliases. Signed-off-by: Matt Fleming <matt@console-pimps.org> Signed-off-by: Paul Mundt <lethal@linux-sh.org>
Diffstat (limited to 'arch/sh')
-rw-r--r--arch/sh/mm/cache-sh4.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/arch/sh/mm/cache-sh4.c b/arch/sh/mm/cache-sh4.c
index f36a08bf3d5c..560ddb6bc8a7 100644
--- a/arch/sh/mm/cache-sh4.c
+++ b/arch/sh/mm/cache-sh4.c
@@ -256,8 +256,7 @@ static void sh4_flush_cache_page(void *args)
address = (unsigned long)vaddr;
}
- if (pages_do_alias(address, phys))
- flush_cache_one(CACHE_OC_ADDRESS_ARRAY |
+ flush_cache_one(CACHE_OC_ADDRESS_ARRAY |
(address & shm_align_mask), phys);
if (vma->vm_flags & VM_EXEC)
OpenPOWER on IntegriCloud