Messages in this thread Patch in this message | | | Date | Wed, 28 Jan 2009 19:24:24 -0800 | From | Randy Dunlap <> | Subject | [PATCH -mmotm] fix more cpuset breakage |
| |
From: Randy Dunlap <randy.dunlap@oracle.com>
Not everyone uses cpusets, so fix the b0rked build (part 2):
kernel/kthread.c:243: error: 'struct task_struct' has no member named 'mems_allowed'
Signed-off-by: Randy Dunlap <randy.dunlap@oracle.com> --- kernel/kthread.c | 2 ++ 1 file changed, 2 insertions(+)
--- mmotm-2009-0128-1742.orig/kernel/kthread.c +++ mmotm-2009-0128-1742/kernel/kthread.c @@ -240,7 +240,9 @@ int kthreadd(void *unused) set_user_nice(tsk, KTHREAD_NICE_LEVEL); set_cpus_allowed_ptr(tsk, CPU_MASK_ALL_PTR); +#ifdef CONFIG_CPUSETS current->mems_allowed = node_possible_map; +#endif current->flags |= PF_NOFREEZE | PF_FREEZER_NOSIG; for (;;) {
| |