diff options
author | Vineet Gupta <vgupta@synopsys.com> | 2015-11-17 10:10:29 +0530 |
---|---|---|
committer | Vineet Gupta <vgupta@synopsys.com> | 2019-10-28 12:12:32 -0700 |
commit | ad4c40e937f6d6a08a579c4a78206039618426b7 (patch) | |
tree | 6aa267dceb8b36bde0b36433539d0766305b210b /arch/arc/include | |
parent | f4e2f7cc6999943e0a649cbc4618428181aad58f (diff) | |
download | linux-ad4c40e937f6d6a08a579c4a78206039618426b7.tar.gz linux-ad4c40e937f6d6a08a579c4a78206039618426b7.tar.bz2 linux-ad4c40e937f6d6a08a579c4a78206039618426b7.zip |
ARC: mm: tlb flush optim: Make TLBWriteNI fallback to TLBWrite if not available
TLBWriteNI was introduced in MMUv2 (to not invalidate uTLBs in Fast Path
TLB Refill Handler). To avoid #ifdef'ery make it fallback to TLBWrite availabel on all MMUs. This will also help with next change
Signed-off-by: Vineet Gupta <vgupta@synopsys.com>
Diffstat (limited to 'arch/arc/include')
-rw-r--r-- | arch/arc/include/asm/mmu.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/arch/arc/include/asm/mmu.h b/arch/arc/include/asm/mmu.h index 0abacb82a72b..26b731d32a2b 100644 --- a/arch/arc/include/asm/mmu.h +++ b/arch/arc/include/asm/mmu.h @@ -67,6 +67,8 @@ #if (CONFIG_ARC_MMU_VER >= 2) #define TLBWriteNI 0x5 /* write JTLB without inv uTLBs */ #define TLBIVUTLB 0x6 /* explicitly inv uTLBs */ +#else +#define TLBWriteNI TLBWrite /* Not present in hardware, fallback */ #endif #if (CONFIG_ARC_MMU_VER >= 4) |