-#ifdef CONFIG_ARM_ERRATA_798181
-void a15_erratum_get_cpumask(int this_cpu, struct mm_struct *mm,
- cpumask_t *mask)
-{
- int cpu;
- unsigned long flags;
- u64 context_id, asid;
-
- raw_spin_lock_irqsave(&cpu_asid_lock, flags);
- context_id = mm->context.id.counter;
- for_each_online_cpu(cpu) {
- if (cpu == this_cpu)
- continue;
- /*
- * We only need to send an IPI if the other CPUs are
- * running the same ASID as the one being invalidated.
- */
- asid = per_cpu(active_asids, cpu).counter;
- if (asid == 0)
- asid = per_cpu(reserved_asids, cpu);
- if (context_id == asid)
- cpumask_set_cpu(cpu, mask);
- }
- raw_spin_unlock_irqrestore(&cpu_asid_lock, flags);
-}
-#endif
-