]> err.no Git - linux-2.6/blobdiff - lib/ioremap.c
[PATCH] remove bogus arch-specific syscall exports
[linux-2.6] / lib / ioremap.c
index 29c810ec981379b486157cd94e28f6f9d6687b28..99fa277f9f7b7345d7394ba0d5185c7acc815486 100644 (file)
@@ -76,8 +76,6 @@ int ioremap_page_range(unsigned long addr,
 
        BUG_ON(addr >= end);
 
-       flush_cache_all();
-
        start = addr;
        phys_addr -= addr;
        pgd = pgd_offset_k(addr);
@@ -88,7 +86,7 @@ int ioremap_page_range(unsigned long addr,
                        break;
        } while (pgd++, addr = next, addr != end);
 
-       flush_tlb_all();
+       flush_cache_vmap(start, end);
 
        return err;
 }