summaryrefslogtreecommitdiffstats
path: root/arch/arm/mm/context.c
diff options
context:
space:
mode:
authorRusty Russell <rusty@rustcorp.com.au>2009-09-24 09:34:49 -0600
committerRusty Russell <rusty@rustcorp.com.au>2009-09-24 09:34:49 +0930
commit56f8ba83a52b9f9e3711eff8e54168ac14aa288f (patch)
treee030f7f3a191384268d86863ca43237a137e8f51 /arch/arm/mm/context.c
parenta6a01063de6298c60f2506dc7659403e02b4b224 (diff)
downloadop-kernel-dev-56f8ba83a52b9f9e3711eff8e54168ac14aa288f.zip
op-kernel-dev-56f8ba83a52b9f9e3711eff8e54168ac14aa288f.tar.gz
cpumask: use mm_cpumask() wrapper: arm
Makes code futureproof against the impending change to mm->cpu_vm_mask. It's also a chance to use the new cpumask_ ops which take a pointer (the older ones are deprecated, but there's no hurry for arch code). Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>
Diffstat (limited to 'arch/arm/mm/context.c')
-rw-r--r--arch/arm/mm/context.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/arch/arm/mm/context.c b/arch/arm/mm/context.c
index fc84fcc..6bda76a 100644
--- a/arch/arm/mm/context.c
+++ b/arch/arm/mm/context.c
@@ -59,6 +59,6 @@ void __new_context(struct mm_struct *mm)
}
spin_unlock(&cpu_asid_lock);
- mm->cpu_vm_mask = cpumask_of_cpu(smp_processor_id());
+ cpumask_copy(mm_cpumask(mm), cpumask_of(smp_processor_id()));
mm->context.id = asid;
}
OpenPOWER on IntegriCloud