Commit e887eb61 authored by KOSAKI Motohiro's avatar KOSAKI Motohiro Committed by Mike Frysinger

Blackfin: don't touch task->cpus_allowed directly

Every callter (except kthread_bind) should use proper
set_cpus_allowed_ptr() APIs.
Signed-off-by: default avatarKOSAKI Motohiro <kosaki.motohiro@jp.fujitsu.com>
Signed-off-by: default avatarMike Frysinger <vapier@gentoo.org>
parent 3cb8a39f
...@@ -171,10 +171,8 @@ asmlinkage int bfin_clone(struct pt_regs *regs) ...@@ -171,10 +171,8 @@ asmlinkage int bfin_clone(struct pt_regs *regs)
unsigned long newsp; unsigned long newsp;
#ifdef __ARCH_SYNC_CORE_DCACHE #ifdef __ARCH_SYNC_CORE_DCACHE
if (current->rt.nr_cpus_allowed == num_possible_cpus()) { if (current->rt.nr_cpus_allowed == num_possible_cpus())
current->cpus_allowed = cpumask_of_cpu(smp_processor_id()); set_cpus_allowed_ptr(current, cpumask_of(smp_processor_id()));
current->rt.nr_cpus_allowed = 1;
}
#endif #endif
/* syscall2 puts clone_flags in r0 and usp in r1 */ /* syscall2 puts clone_flags in r0 and usp in r1 */
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment