From: Lai Jiangshan Date: Wed, 12 Dec 2012 21:51:39 +0000 (-0800) Subject: kthread: use N_MEMORY instead N_HIGH_MEMORY X-Git-Tag: MMI-PSA29.97-13-9~15389^2~27 X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=aee4faa499dc58fdb126885f68d447f2eba79b43;p=GitHub%2FMotorolaMobilityLLC%2Fkernel-slsi.git kthread: use N_MEMORY instead N_HIGH_MEMORY N_HIGH_MEMORY stands for the nodes that has normal or high memory. N_MEMORY stands for the nodes that has any memory. The code here need to handle with the nodes which have memory, we should use N_MEMORY instead. Signed-off-by: Lai Jiangshan Signed-off-by: Wen Congyang Cc: Christoph Lameter Cc: Hillf Danton Cc: Lin Feng Cc: David Rientjes Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds --- diff --git a/kernel/kthread.c b/kernel/kthread.c index 29fb60caecb5..691dc2ef9baf 100644 --- a/kernel/kthread.c +++ b/kernel/kthread.c @@ -428,7 +428,7 @@ int kthreadd(void *unused) set_task_comm(tsk, "kthreadd"); ignore_signals(tsk); set_cpus_allowed_ptr(tsk, cpu_all_mask); - set_mems_allowed(node_states[N_HIGH_MEMORY]); + set_mems_allowed(node_states[N_MEMORY]); current->flags |= PF_NOFREEZE;