cpumask: use mm_cpumask() wrapper: sparc
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>
This commit is contained in:
parent
e9b375120b
commit
81f1adf012
4 changed files with 19 additions and 18 deletions
|
@ -126,7 +126,7 @@ extern void flushw_all(void);
|
|||
#define switch_to(prev, next, last) do { \
|
||||
SWITCH_ENTER(prev); \
|
||||
SWITCH_DO_LAZY_FPU(next); \
|
||||
cpu_set(smp_processor_id(), next->active_mm->cpu_vm_mask); \
|
||||
cpumask_set_cpu(smp_processor_id(), mm_cpumask(next->active_mm)); \
|
||||
__asm__ __volatile__( \
|
||||
"sethi %%hi(here - 0x8), %%o7\n\t" \
|
||||
"mov %%g6, %%g3\n\t" \
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue