]> asedeno.scripts.mit.edu Git - linux.git/blobdiff - arch/mips/mm/c-r4k.c
MIPS: c-r4k: Fix size calc when avoiding IPIs for small icache flushes
[linux.git] / arch / mips / mm / c-r4k.c
index cd72805b64a764c0a33f7d7ffb8c10d8119ac509..fa7d8d3790bfc960bc7d4b358e9fb1a5120c04e2 100644 (file)
@@ -800,7 +800,7 @@ static void r4k_flush_icache_range(unsigned long start, unsigned long end)
                 * If address-based cache ops don't require an SMP call, then
                 * use them exclusively for small flushes.
                 */
-               size = start - end;
+               size = end - start;
                cache_size = icache_size;
                if (!cpu_has_ic_fills_f_dc) {
                        size *= 2;