]> 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>
Fri, 16 Dec 2011 04:49:21 +0000 (15:49 +1100)
committerStephen Rothwell <sfr@canb.auug.org.au>
Mon, 19 Dec 2011 07:19:11 +0000 (18:19 +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 4f1d3ddd181f2001be535423ede40fe4c0970da5..e8ed75afb755f590b633626dceda5f4eda789905 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);