]> git.proxmox.com Git - mirror_ubuntu-artful-kernel.git/blobdiff - arch/um/kernel/mem.c
[PATCH] reduce MAX_NR_ZONES: move HIGHMEM counters into highmem.c/.h
[mirror_ubuntu-artful-kernel.git] / arch / um / kernel / mem.c
index 61280167c560dd63411c105663f93519b5818817..b39e624c32913c2073538b2bf2078425981346b0 100644 (file)
@@ -79,8 +79,10 @@ void mem_init(void)
 
        /* this will put all low memory onto the freelists */
        totalram_pages = free_all_bootmem();
+#ifdef CONFIG_HIGHMEM
        totalhigh_pages = highmem >> PAGE_SHIFT;
        totalram_pages += totalhigh_pages;
+#endif
        num_physpages = totalram_pages;
        max_pfn = totalram_pages;
        printk(KERN_INFO "Memory: %luk available\n",