]> git.ipfire.org Git - people/ms/linux.git/commitdiff
nios2: remove end address checking for initda
authorLey Foon Tan <lftan@altera.com>
Wed, 15 Apr 2015 02:45:49 +0000 (10:45 +0800)
committerLey Foon Tan <lftan@altera.com>
Mon, 20 Apr 2015 02:52:06 +0000 (10:52 +0800)
Remove the end address checking for initda function. We need to invalidate
each address line for initda instruction, from start to end address.

Signed-off-by: Ley Foon Tan <lftan@altera.com>
arch/nios2/mm/cacheflush.c

index 796642932e2ef446a9e78b72e7fecccc4ed14647..a09b2b7358037bb73082543f01a80d0ffa90e4dc 100644 (file)
@@ -58,9 +58,6 @@ static void __invalidate_dcache(unsigned long start, unsigned long end)
        end += (cpuinfo.dcache_line_size - 1);
        end &= ~(cpuinfo.dcache_line_size - 1);
 
-       if (end > start + cpuinfo.dcache_size)
-               end = start + cpuinfo.dcache_size;
-
        for (addr = start; addr < end; addr += cpuinfo.dcache_line_size) {
                __asm__ __volatile__ ("   initda 0(%0)\n"
                                        : /* Outputs */