arm64: mm: kill mm_cpumask usage
authorWill Deacon <will.deacon@arm.com>
Tue, 6 Oct 2015 17:46:28 +0000 (18:46 +0100)
committerCatalin Marinas <catalin.marinas@arm.com>
Wed, 7 Oct 2015 10:56:29 +0000 (11:56 +0100)
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>
arch/arm64/kernel/smp.c
arch/arm64/mm/context.c

index fdd4d4dbd64f68b7176018df1f14213db42e4006..03b0aa28ea61d43095f1f091570bed8e5e533929 100644 (file)
@@ -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);
@@ -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;
 }
 
index 4b9ec4484e3f3cfc6ca5ec8d0dd491530512d4b3..f636a2639f031dd03d0b5058ccf378721d67dbf4 100644 (file)
@@ -132,7 +132,6 @@ set_asid:
 
 bump_gen:
        asid |= generation;
-       cpumask_clear(mm_cpumask(mm));
        return asid;
 }
 
@@ -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);
 }