mirror of
https://mirrors.bfsu.edu.cn/git/linux.git
synced 2024-11-17 01:04:19 +08:00
Blackfin: don't touch task->cpus_allowed directly
Every callter (except kthread_bind) should use proper set_cpus_allowed_ptr() APIs. Signed-off-by: KOSAKI Motohiro <kosaki.motohiro@jp.fujitsu.com> Signed-off-by: Mike Frysinger <vapier@gentoo.org>
This commit is contained in:
parent
3cb8a39fa6
commit
e887eb61e5
@ -171,10 +171,8 @@ asmlinkage int bfin_clone(struct pt_regs *regs)
|
||||
unsigned long newsp;
|
||||
|
||||
#ifdef __ARCH_SYNC_CORE_DCACHE
|
||||
if (current->rt.nr_cpus_allowed == num_possible_cpus()) {
|
||||
current->cpus_allowed = cpumask_of_cpu(smp_processor_id());
|
||||
current->rt.nr_cpus_allowed = 1;
|
||||
}
|
||||
if (current->rt.nr_cpus_allowed == num_possible_cpus())
|
||||
set_cpus_allowed_ptr(current, cpumask_of(smp_processor_id()));
|
||||
#endif
|
||||
|
||||
/* syscall2 puts clone_flags in r0 and usp in r1 */
|
||||
|
Loading…
Reference in New Issue
Block a user