mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-30 19:51:31 -04:00
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: Christoph Lameter <[email protected]> Acked-by: Nishanth Aravamudan <[email protected]> Tested-by: Lee Schermerhorn <[email protected]> Acked-by: Bob Picco <[email protected]> Cc: KAMEZAWA Hiroyuki <[email protected]> Cc: Mel Gorman <[email protected]> Signed-off-by: Andrew Morton <[email protected]> Signed-off-by: Linus Torvalds <[email protected]>
This commit is contained in:
parent
ee31af5d64
commit
9422ffba4a
1 changed files with 1 additions and 1 deletions
|
|
@ -1733,7 +1733,7 @@ static int __init kswapd_init(void)
|
|||
int nid;
|
||||
|
||||
swap_setup();
|
||||
for_each_online_node(nid)
|
||||
for_each_node_state(nid, N_HIGH_MEMORY)
|
||||
kswapd_run(nid);
|
||||
hotcpu_notifier(cpu_callback, 0);
|
||||
return 0;
|
||||
|
|
|
|||
Loading…
Reference in a new issue