lkml.org 
[lkml]   [2009]   [Jan]   [28]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
Patch in this message
/
Date
From
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 (;;) {

\
 
 \ /
  Last update: 2009-01-29 04:27    [W:0.058 / U:0.632 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site