Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

arm64: mm: don't bother invalidating the icache in switch_mm

We don't support software broadcast of cache maintenance operations, so
this flush is not required (__sync_icache_dcache will always affect all
CPUs).

Signed-off-by: Will Deacon <will.deacon@arm.com>
Signed-off-by: Catalin Marinas <catalin.marinas@arm.com>

authored by

Will Deacon and committed by
Catalin Marinas
737c16df 4ecf7ccb

-6
-6
arch/arm64/include/asm/mmu_context.h
··· 151 151 { 152 152 unsigned int cpu = smp_processor_id(); 153 153 154 - #ifdef CONFIG_SMP 155 - /* check for possible thread migration */ 156 - if (!cpumask_empty(mm_cpumask(next)) && 157 - !cpumask_test_cpu(cpu, mm_cpumask(next))) 158 - __flush_icache_all(); 159 - #endif 160 154 if (!cpumask_test_and_set_cpu(cpu, mm_cpumask(next)) || prev != next) 161 155 check_and_switch_context(next, tsk); 162 156 }