OSDN Git Service
(root)
/
android-x86
/
kernel.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
0297b80
)
sched: fix cpus_allowed settings
author
Gregory Haskins
<ghaskins@novell.com>
Tue, 12 Feb 2008 18:30:05 +0000
(13:30 -0500)
committer
Ingo Molnar
<mingo@elte.hu>
Sat, 19 Apr 2008 17:44:58 +0000
(19:44 +0200)
Signed-off-by: Gregory Haskins <ghaskins@novell.com>
Acked-by: Steven Rostedt <srostedt@redhat.com>
Signed-off-by: Ingo Molnar <mingo@elte.hu>
kernel/kthread.c
patch
|
blob
|
history
diff --git
a/kernel/kthread.c
b/kernel/kthread.c
index
0ac8878
..
25241d6
100644
(file)
--- a/
kernel/kthread.c
+++ b/
kernel/kthread.c
@@
-180,6
+180,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->rt.nr_cpus_allowed = 1;
}
EXPORT_SYMBOL(kthread_bind);