Skip to content

Commit 0c55448

Browse files
wildea01samitolvanen
authored andcommitted
UPSTREAM: arm64: mm: kill mm_cpumask usage
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> Bug: 31432001 Change-Id: Ib33459092474fdc45dd8bb7e21658804c778fdb8 (cherry picked from commit 38d96287504a2478eb538bfecfa1fddd743bb6b2) Signed-off-by: Sami Tolvanen <samitolvanen@google.com>
1 parent 774c62e commit 0c55448

File tree

2 files changed

+0
-9
lines changed

2 files changed

+0
-9
lines changed

arch/arm64/kernel/smp.c

-7
Original file line numberDiff line numberDiff line change
@@ -141,7 +141,6 @@ asmlinkage void secondary_start_kernel(void)
141141
*/
142142
atomic_inc(&mm->mm_count);
143143
current->active_mm = mm;
144-
cpumask_set_cpu(cpu, mm_cpumask(mm));
145144

146145
set_my_cpu_offset(per_cpu_offset(smp_processor_id()));
147146

@@ -240,12 +239,6 @@ int __cpu_disable(void)
240239
* OK - migrate IRQs away from this CPU
241240
*/
242241
migrate_irqs();
243-
244-
/*
245-
* Remove this CPU from the vm mask set of all processes.
246-
*/
247-
clear_tasks_mm_cpumask(cpu);
248-
249242
return 0;
250243
}
251244

arch/arm64/mm/context.c

-2
Original file line numberDiff line numberDiff line change
@@ -132,7 +132,6 @@ static u64 new_context(struct mm_struct *mm, unsigned int cpu)
132132

133133
bump_gen:
134134
asid |= generation;
135-
cpumask_clear(mm_cpumask(mm));
136135
return asid;
137136
}
138137

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

171170
switch_mm_fastpath:
172-
cpumask_set_cpu(cpu, mm_cpumask(mm));
173171
cpu_switch_mm(mm->pgd, mm);
174172
}
175173

0 commit comments

Comments
 (0)