Commit 9422ffba authored by Christoph Lameter's avatar Christoph Lameter Committed by Linus Torvalds

Memoryless nodes: No need for kswapd

A node without memory does not need a kswapd.  So use the memory map instead
of the online map when starting kswapd.
Signed-off-by: default avatarChristoph Lameter <clameter@sgi.com>
Acked-by: default avatarNishanth Aravamudan <nacc@us.ibm.com>
Tested-by: default avatarLee Schermerhorn <lee.schermerhorn@hp.com>
Acked-by: default avatarBob Picco <bob.picco@hp.com>
Cc: KAMEZAWA Hiroyuki <kamezawa.hiroyu@jp.fujitsu.com>
Cc: Mel Gorman <mel@skynet.ie>
Signed-off-by: default avatarAndrew Morton <akpm@linux-foundation.org>
Signed-off-by: default avatarLinus Torvalds <torvalds@linux-foundation.org>
parent ee31af5d
...@@ -1733,7 +1733,7 @@ static int __init kswapd_init(void) ...@@ -1733,7 +1733,7 @@ static int __init kswapd_init(void)
int nid; int nid;
swap_setup(); swap_setup();
for_each_online_node(nid) for_each_node_state(nid, N_HIGH_MEMORY)
kswapd_run(nid); kswapd_run(nid);
hotcpu_notifier(cpu_callback, 0); hotcpu_notifier(cpu_callback, 0);
return 0; return 0;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment