[MIPS] Fix WARNING: at kernel/smp.c:290
trap_init issues flush_icache_range(), which uses ipi functions to get icache flushing done on all cpus. But this is done before interrupts are enabled and caused WARN_ON messages. This changeset introduces a new local_flush_icache_range() and uses it before interrupts (and additional CPUs) are enabled to avoid this problem. Signed-off-by:Thomas Bogendoerfer <tsbogend@alpha.franken.de> Signed-off-by:
Ralf Baechle <ralf@linux-mips.org>
Showing
- arch/mips/kernel/traps.c 7 additions, 5 deletionsarch/mips/kernel/traps.c
- arch/mips/mm/c-r3k.c 1 addition, 0 deletionsarch/mips/mm/c-r3k.c
- arch/mips/mm/c-r4k.c 12 additions, 6 deletionsarch/mips/mm/c-r4k.c
- arch/mips/mm/c-tx39.c 1 addition, 0 deletionsarch/mips/mm/c-tx39.c
- arch/mips/mm/cache.c 1 addition, 0 deletionsarch/mips/mm/cache.c
- arch/mips/mm/tlbex.c 3 additions, 3 deletionsarch/mips/mm/tlbex.c
- include/asm-mips/cacheflush.h 1 addition, 0 deletionsinclude/asm-mips/cacheflush.h
Loading
Please register or sign in to comment