[PATCH 2/2] fix cpus_allowed settings
From: Gregory Haskins
Date: Tue Feb 12 2008 - 14:20:11 EST
Signed-off-by: Gregory Haskins <ghaskins@xxxxxxxxxx>
---
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);
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/