git.openpandora.org
/
pandora-kernel.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Merge branch 'for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/mason/btrfs...
[pandora-kernel.git]
/
kernel
/
kthread.c
diff --git
a/kernel/kthread.c
b/kernel/kthread.c
index
3b34d27
..
4ba7ccc
100644
(file)
--- a/
kernel/kthread.c
+++ b/
kernel/kthread.c
@@
-202,8
+202,8
@@
void kthread_bind(struct task_struct *p, unsigned int cpu)
return;
}
return;
}
- p->cpus_allowed = cpumask_of_cpu(cpu);
-
p->rt.nr_cpus_allowed = 1
;
+ /* It's safe because the task is inactive. */
+
do_set_cpus_allowed(p, cpumask_of(cpu))
;
p->flags |= PF_THREAD_BOUND;
}
EXPORT_SYMBOL(kthread_bind);
p->flags |= PF_THREAD_BOUND;
}
EXPORT_SYMBOL(kthread_bind);