*
* (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>
BUG_ON(addr >= end);
- flush_cache_all();
-
start = addr;
phys_addr -= addr;
pgd = pgd_offset_k(addr);
break;
} while (pgd++, addr = next, addr != end);
- flush_tlb_all();
+ flush_cache_vmap(start, end);
return err;
}