[PATCH 2/2] fix cpus_allowed settings

!MAILaRCHIVE_VOTE_RePLACE
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]
To: <rostedt@...>, <mingo@...>
Cc: <linux-kernel@...>, <linux-rt-users@...>, <ghaskins@...>
Date: Tuesday, February 12, 2008 - 2:30 pm

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);
 

--
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]

Messages in current thread:
[PATCH 0/2] migration disabled critical sections, Gregory Haskins, (Tue Feb 12, 2:29 pm)
[PATCH 1/2] add task migration_disable critical section, Gregory Haskins, (Tue Feb 12, 2:30 pm)
Re: [PATCH 1/2] add task migration_disable critical section, Gregory Haskins, (Tue Feb 12, 3:28 pm)
[PATCH 2/2] fix cpus_allowed settings, Gregory Haskins, (Tue Feb 12, 2:30 pm)