From: KOSAKI Motohiro Date: Tue, 26 Apr 2011 01:56:42 +0000 (+0900) Subject: Blackfin: don't touch task->cpus_allowed directly X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=e887eb61e5a27ba54405f2ca51d8d0d378c4ffe5;p=GitHub%2Fexynos8895%2Fandroid_kernel_samsung_universal8895.git 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 Signed-off-by: Mike Frysinger --- diff --git a/arch/blackfin/kernel/process.c b/arch/blackfin/kernel/process.c index b407bc8ad918..6a660fa921b5 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 */