Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

cpumask: use mm_cpumask() wrapper: mn10300

Makes code futureproof against the impending change to mm->cpu_vm_mask
(to be a pointer).

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).

Also change the actual arg name here to "mm" (which it is), not "task".

Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>

+6 -6
+6 -6
arch/mn10300/include/asm/mmu_context.h
··· 38 38 #define enter_lazy_tlb(mm, tsk) do {} while (0) 39 39 40 40 #ifdef CONFIG_SMP 41 - #define cpu_ran_vm(cpu, task) \ 42 - cpu_set((cpu), (task)->cpu_vm_mask) 43 - #define cpu_maybe_ran_vm(cpu, task) \ 44 - cpu_test_and_set((cpu), (task)->cpu_vm_mask) 41 + #define cpu_ran_vm(cpu, mm) \ 42 + cpumask_set_cpu((cpu), mm_cpumask(mm)) 43 + #define cpu_maybe_ran_vm(cpu, mm) \ 44 + cpumask_test_and_set_cpu((cpu), mm_cpumask(mm)) 45 45 #else 46 - #define cpu_ran_vm(cpu, task) do {} while (0) 47 - #define cpu_maybe_ran_vm(cpu, task) true 46 + #define cpu_ran_vm(cpu, mm) do {} while (0) 47 + #define cpu_maybe_ran_vm(cpu, mm) true 48 48 #endif /* CONFIG_SMP */ 49 49 50 50 /*