summaryrefslogtreecommitdiffstats
path: root/arch/blackfin
diff options
context:
space:
mode:
authorKOSAKI Motohiro <kosaki.motohiro@jp.fujitsu.com>2011-04-26 10:56:42 +0900
committerMike Frysinger <vapier@gentoo.org>2011-05-25 08:24:10 -0400
commite887eb61e5a27ba54405f2ca51d8d0d378c4ffe5 (patch)
tree1db39977dd8fc8b6446fc72a72f53b894a7515f7 /arch/blackfin
parent3cb8a39fa6695575959fc3661b5d379b4e552eaa (diff)
downloadop-kernel-dev-e887eb61e5a27ba54405f2ca51d8d0d378c4ffe5.zip
op-kernel-dev-e887eb61e5a27ba54405f2ca51d8d0d378c4ffe5.tar.gz
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>
Diffstat (limited to 'arch/blackfin')
-rw-r--r--arch/blackfin/kernel/process.c6
1 files changed, 2 insertions, 4 deletions
diff --git a/arch/blackfin/kernel/process.c b/arch/blackfin/kernel/process.c
index b407bc8..6a660fa 100644
--- a/arch/blackfin/kernel/process.c
+++ b/arch/blackfin/kernel/process.c
@@ -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 */
OpenPOWER on IntegriCloud