Skip to content

Commit

Permalink
arm64: mm: kill mm_cpumask usage
Browse files Browse the repository at this point in the history
mm_cpumask isn't actually used for anything on arm64, so remove all the
code trying to keep it up-to-date.

Reviewed-by: Catalin Marinas <catalin.marinas@arm.com>
Signed-off-by: Will Deacon <will.deacon@arm.com>
Signed-off-by: Catalin Marinas <catalin.marinas@arm.com>
  • Loading branch information
Will Deacon authored and Catalin Marinas committed Oct 7, 2015
1 parent c2775b2 commit 38d9628
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 9 deletions.
7 changes: 0 additions & 7 deletions arch/arm64/kernel/smp.c
Original file line number Diff line number Diff line change
Expand Up @@ -142,7 +142,6 @@ asmlinkage void secondary_start_kernel(void)
*/
atomic_inc(&mm->mm_count);
current->active_mm = mm;
cpumask_set_cpu(cpu, mm_cpumask(mm));

set_my_cpu_offset(per_cpu_offset(smp_processor_id()));
printk("CPU%u: Booted secondary processor\n", cpu);
Expand Down Expand Up @@ -233,12 +232,6 @@ int __cpu_disable(void)
* OK - migrate IRQs away from this CPU
*/
migrate_irqs();

/*
* Remove this CPU from the vm mask set of all processes.
*/
clear_tasks_mm_cpumask(cpu);

return 0;
}

Expand Down
2 changes: 0 additions & 2 deletions arch/arm64/mm/context.c
Original file line number Diff line number Diff line change
Expand Up @@ -132,7 +132,6 @@ static u64 new_context(struct mm_struct *mm, unsigned int cpu)

bump_gen:
asid |= generation;
cpumask_clear(mm_cpumask(mm));
return asid;
}

Expand Down Expand Up @@ -169,7 +168,6 @@ void check_and_switch_context(struct mm_struct *mm, unsigned int cpu)
raw_spin_unlock_irqrestore(&cpu_asid_lock, flags);

switch_mm_fastpath:
cpumask_set_cpu(cpu, mm_cpumask(mm));
cpu_switch_mm(mm->pgd, mm);
}

Expand Down

0 comments on commit 38d9628

Please sign in to comment.