]> git.karo-electronics.de Git - karo-tx-linux.git/commitdiff
cpusets-stall-when-updating-mems_allowed-for-mempolicy-or-disjoint-nodemask-fix
authorAndrew Morton <akpm@linux-foundation.org>
Thu, 8 Dec 2011 04:32:04 +0000 (15:32 +1100)
committerStephen Rothwell <sfr@canb.auug.org.au>
Tue, 13 Dec 2011 06:42:58 +0000 (17:42 +1100)
stupid temporary hack to make it build with CONFIG_NUMA=n

Cc: David Rientjes <rientjes@google.com>
Cc: KOSAKI Motohiro <kosaki.motohiro@jp.fujitsu.com>
Cc: Miao Xie <miaox@cn.fujitsu.com>
Cc: Paul Menage <paul@paulmenage.org>
Reported-by: Stephen Rothwell <sfr@canb.auug.org.au>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
kernel/cpuset.c

index 52917e56a396f586e6d322b302159d58a36e1bea..fb147b2caa09a721baaafdda15ce3a2eab92a030 100644 (file)
@@ -968,7 +968,10 @@ repeat:
         * tsk does not have a mempolicy, then an empty nodemask will not be
         * possible when mems_allowed is larger than a word.
         */
-       need_loop = tsk->mempolicy ||
+       need_loop =
+#ifdef CONFIG_NUMA
+               tsk->mempolicy ||
+#endif
                        !nodes_intersects(*newmems, tsk->mems_allowed);
        nodes_or(tsk->mems_allowed, tsk->mems_allowed, *newmems);
        mpol_rebind_task(tsk, newmems, MPOL_REBIND_STEP1);