lkml.org 
[lkml]   [2008]   [Feb]   [12]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
Patch in this message
/
From
Subject[PATCH 2/2] fix cpus_allowed settings
Date
Signed-off-by: Gregory Haskins <ghaskins@novell.com>
---
kernel/kthread.c | 1 +
1 files changed, 1 insertions(+), 0 deletions(-)
diff --git a/kernel/kthread.c b/kernel/kthread.c
index dcfe724..b193b47 100644
--- a/kernel/kthread.c
+++ b/kernel/kthread.c
@@ -170,6 +170,7 @@ void kthread_bind(struct task_struct *k, unsigned int cpu)
wait_task_inactive(k);
set_task_cpu(k, cpu);
k->cpus_allowed = cpumask_of_cpu(cpu);
+ k->nr_cpus_allowed = 1;
}
EXPORT_SYMBOL(kthread_bind);



\
 
 \ /
  Last update: 2008-02-12 20:23    [from the cache]
©2003-2014 Jasper Spaans. Advertise on this site