diff options
author | Matt Fleming <matt@console-pimps.org> | 2009-12-08 15:23:11 +0100 |
---|---|---|
committer | Paul Mundt <lethal@linux-sh.org> | 2009-12-09 04:34:46 +0100 |
commit | e717cc6c07f006be36e35189aacb28be4e30ad14 (patch) | |
tree | 781f264a9a0071c8b32a4ccb6d29482c90cb8b2d /arch/sh/mm/cache-sh4.c | |
parent | sh: include empty zero page in romImage (diff) | |
download | linux-e717cc6c07f006be36e35189aacb28be4e30ad14.tar.xz 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/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 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) |