]> www.pilppa.org Git - linux-2.6-omap-h63xx.git/blobdiff - lib/ioremap.c
Remove executable permission for dma.c
[linux-2.6-omap-h63xx.git] / lib / ioremap.c
index 29c810ec981379b486157cd94e28f6f9d6687b28..14c6078f17a2a2aa26da4ac638da4a7e966649ed 100644 (file)
@@ -5,10 +5,10 @@
  *
  * (C) Copyright 1995 1996 Linus Torvalds
  */
-#include <linux/io.h>
 #include <linux/vmalloc.h>
 #include <linux/mm.h>
-
+#include <linux/sched.h>
+#include <linux/io.h>
 #include <asm/cacheflush.h>
 #include <asm/pgtable.h>
 
@@ -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;
 }