]> 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>
Wed, 14 Dec 2011 05:47:53 +0000 (16:47 +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);