]> bbs.cooldavid.org Git - net-next-2.6.git/blobdiff - mm/vmalloc.c
ARM: SAMSUNG: Add a workaround for get_clock() for serial driver
[net-next-2.6.git] / mm / vmalloc.c
index 918c51335d64165348dc3b54775019f7a78bcaa7..6b8889da69a60612301c2bd26244ae0f3e1e1966 100644 (file)
@@ -31,6 +31,7 @@
 #include <asm/tlbflush.h>
 #include <asm/shmparam.h>
 
+bool vmap_lazy_unmap __read_mostly = true;
 
 /*** Page table manipulation functions ***/
 
@@ -502,6 +503,9 @@ static unsigned long lazy_max_pages(void)
 {
        unsigned int log;
 
+       if (!vmap_lazy_unmap)
+               return 0;
+
        log = fls(num_online_cpus());
 
        return log * (32UL * 1024 * 1024 / PAGE_SIZE);