rc2014: remove last bits of ramdisk crud
authorAlan Cox <alan@linux.intel.com>
Sun, 16 Sep 2018 14:55:41 +0000 (15:55 +0100)
committerAlan Cox <alan@linux.intel.com>
Sun, 16 Sep 2018 14:55:41 +0000 (15:55 +0100)
Kernel/platform-rc2014/config.h
Kernel/platform-rc2014/discard.c

index 9db2b67..1823eef 100644 (file)
@@ -13,7 +13,7 @@
 /* Permit large I/O requests to bypass cache and go direct to userspace */
 #define CONFIG_LARGE_IO_DIRECT
 /* 32 x 16K pages, 3 pages for kernel, whatever the RAM disk uses */
-#define MAX_MAPS       (32 - 3 - DEV_RD_RAM_PAGES)
+#define MAX_MAPS       (32 - 3)
 
 /* Banks as reported to user space */
 #define CONFIG_BANKS   4
index 7bee27b..27abf14 100644 (file)
@@ -33,7 +33,7 @@ void pagemap_init(void)
         * Page 35 is the common area
         * Pages starting from DEV_RD_START are used by RAM disk
         */
-       for (i = 32 + 4; i < (DEV_RD_RAM_START >> 14); i++)
+       for (i = 32 + 4; i < 64; i++)
                pagemap_add(i);
 
        /* finally add the common area */