]> asedeno.scripts.mit.edu Git - linux.git/commit
nios2: flush_tlb_all use TLBMISC way auto-increment feature
authorNicholas Piggin <npiggin@gmail.com>
Wed, 7 Nov 2018 02:21:02 +0000 (10:21 +0800)
committerLey Foon Tan <ley.foon.tan@intel.com>
Wed, 6 Mar 2019 21:29:35 +0000 (05:29 +0800)
commit737a3fa20f2e195d94d9501ab5d76c29194d8176
tree76cde8285db6e6e3f24450bce8a3b8ea593f282d
parentc6b1d363f883996e62bdb8655e472890d7dfd7ca
nios2: flush_tlb_all use TLBMISC way auto-increment feature

Writes to TLBACC cause TLBMISC way to be incremented, which can be
used to iterate over ways in a set, then wrap back to zero ready for
the next set. This reduces register writes significantly.

Signed-off-by: Nicholas Piggin <npiggin@gmail.com>
Signed-off-by: Ley Foon Tan <ley.foon.tan@intel.com>
arch/nios2/mm/tlb.c