diff options
author | Atish Patra <atish.patra@wdc.com> | 2019-09-10 03:40:38 -0700 |
---|---|---|
committer | Anup Patel <anup@brainfault.org> | 2019-09-10 17:44:10 +0530 |
commit | 98ee15ca3adcf7bc22695897cd63a3ce8c5c53ff (patch) | |
tree | fad1689c391ba8660674e2b80cab3c9df5900aba /include/sbi/sbi_tlb.h | |
parent | f2e82c3d797d9f64ec8f33365c35a2b5f7ea2bbb (diff) |
lib: provide a platform specific tlb range flush threshold
Currently, the tlb range flush threshold is fixed and set to 4k for
all platforms. However, it should be platform specific as it completely
depends upon how platform actually implements sfence instruction.
Define a platform feature that allows every individual platform to set
different values. If a platform doesn't define it, just use a page size as
the threshold.
Signed-off-by: Atish Patra <atish.patra@wdc.com>
Reviewed-by: Bin Meng <bmeng.cn@gmail.com>
Reviewed-by: Anup Patel <anup.patel@wdc.com>
Diffstat (limited to 'include/sbi/sbi_tlb.h')
-rw-r--r-- | include/sbi/sbi_tlb.h | 1 |
1 files changed, 0 insertions, 1 deletions
diff --git a/include/sbi/sbi_tlb.h b/include/sbi/sbi_tlb.h index cd52c12..d1d6f22 100644 --- a/include/sbi/sbi_tlb.h +++ b/include/sbi/sbi_tlb.h @@ -16,7 +16,6 @@ /* clang-format off */ #define SBI_TLB_FLUSH_ALL ((unsigned long)-1) -#define SBI_TLB_FLUSH_MAX_SIZE (1UL << 12) /* clang-format on */ |