mm: handle hashdist initialization in mm/mm_init.c
[sfrench/cifs-2.6.git] / mm / page_alloc.c
index 8adc70b6034d00d1ca7b0c6e22f58876ae8a60d1..3abc994bcfa16b8a34e23cdef9aa83a306b9315b 100644 (file)
@@ -6393,28 +6393,10 @@ static int page_alloc_cpu_online(unsigned int cpu)
        return 0;
 }
 
-#ifdef CONFIG_NUMA
-int hashdist = HASHDIST_DEFAULT;
-
-static int __init set_hashdist(char *str)
-{
-       if (!str)
-               return 0;
-       hashdist = simple_strtoul(str, &str, 0);
-       return 1;
-}
-__setup("hashdist=", set_hashdist);
-#endif
-
 void __init page_alloc_init(void)
 {
        int ret;
 
-#ifdef CONFIG_NUMA
-       if (num_node_state(N_MEMORY) == 1)
-               hashdist = 0;
-#endif
-
        ret = cpuhp_setup_state_nocalls(CPUHP_PAGE_ALLOC,
                                        "mm/page_alloc:pcp",
                                        page_alloc_cpu_online,