Messages in this thread Patch in this message | | | From | Gregory Haskins <> | Subject | [PATCH 2/2] fix cpus_allowed settings | Date | Tue, 12 Feb 2008 13:30:05 -0500 |
| |
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);
| |