arc: remove support for DISCONTIGMEM
[platform/kernel/linux-starfive.git] / arch / arc / mm / init.c
index 397a201..abfeef7 100644 (file)
@@ -32,11 +32,6 @@ unsigned long arch_pfn_offset;
 EXPORT_SYMBOL(arch_pfn_offset);
 #endif
 
-#ifdef CONFIG_DISCONTIGMEM
-struct pglist_data node_data[MAX_NUMNODES] __read_mostly;
-EXPORT_SYMBOL(node_data);
-#endif
-
 long __init arc_get_mem_sz(void)
 {
        return low_mem_sz;
@@ -147,9 +142,6 @@ void __init setup_arch_memory(void)
         * to the hole is freed and ARC specific version of pfn_valid()
         * handles the hole in the memory map.
         */
-#ifdef CONFIG_DISCONTIGMEM
-       node_set_online(1);
-#endif
 
        min_high_pfn = PFN_DOWN(high_mem_start);
        max_high_pfn = PFN_DOWN(high_mem_start + high_mem_sz);