|
@@ -5137,8 +5137,7 @@ static DEFINE_PER_CPU(struct per_cpu_nodestat, boot_nodestats);
|
|
*/
|
|
*/
|
|
DEFINE_MUTEX(zonelists_mutex);
|
|
DEFINE_MUTEX(zonelists_mutex);
|
|
|
|
|
|
-/* return values int ....just for stop_machine() */
|
|
|
|
-static int __build_all_zonelists(void *data)
|
|
|
|
|
|
+static void __build_all_zonelists(void *data)
|
|
{
|
|
{
|
|
int nid;
|
|
int nid;
|
|
int __maybe_unused cpu;
|
|
int __maybe_unused cpu;
|
|
@@ -5174,8 +5173,6 @@ static int __build_all_zonelists(void *data)
|
|
set_cpu_numa_mem(cpu, local_memory_node(cpu_to_node(cpu)));
|
|
set_cpu_numa_mem(cpu, local_memory_node(cpu_to_node(cpu)));
|
|
#endif
|
|
#endif
|
|
}
|
|
}
|
|
-
|
|
|
|
- return 0;
|
|
|
|
}
|
|
}
|
|
|
|
|
|
static noinline void __init
|
|
static noinline void __init
|
|
@@ -5217,9 +5214,7 @@ void __ref build_all_zonelists(pg_data_t *pgdat)
|
|
if (system_state == SYSTEM_BOOTING) {
|
|
if (system_state == SYSTEM_BOOTING) {
|
|
build_all_zonelists_init();
|
|
build_all_zonelists_init();
|
|
} else {
|
|
} else {
|
|
- /* we have to stop all cpus to guarantee there is no user
|
|
|
|
- of zonelist */
|
|
|
|
- stop_machine_cpuslocked(__build_all_zonelists, pgdat, NULL);
|
|
|
|
|
|
+ __build_all_zonelists(pgdat);
|
|
/* cpuset refresh routine should be here */
|
|
/* cpuset refresh routine should be here */
|
|
}
|
|
}
|
|
vm_total_pages = nr_free_pagecache_pages();
|
|
vm_total_pages = nr_free_pagecache_pages();
|