sh: Provide a global TLB flush for U/I-TLB clear.
authorPaul Mundt <lethal@linux-sh.org>
Fri, 2 Jul 2010 06:44:09 +0000 (15:44 +0900)
committerPaul Mundt <lethal@linux-sh.org>
Fri, 2 Jul 2010 06:44:09 +0000 (15:44 +0900)
commit59615ecdb516cf218c3699b02d87d9827dc3e0c7
tree120c63e846caad2ba0f469cd608015e9a776193f
parentae9b12c72f831a2f956a5b30fd999f3018c43a89
sh: Provide a global TLB flush for U/I-TLB clear.

This provides a sledgehammer approach for clearing the TLBs, only to be
used in cases where we know we will never want to use the mappings again
and have no interest in preserving state. This also destroys wired
entries.

The primary use for this is when we are either entering or exiting the
kernel completely, in the latter case as a precursor for CPU reset by
MMU.

Signed-off-by: Paul Mundt <lethal@linux-sh.org>
arch/sh/include/asm/tlbflush.h
arch/sh/kernel/reboot.c
arch/sh/mm/tlbflush_32.c
arch/sh/mm/tlbflush_64.c