Commit 52fd64b8 authored by Inochi Amaoto's avatar Inochi Amaoto Committed by Anup Patel
Browse files

platform: Uses hart count as the default size of tlb info



For platform with high number of harts, it is better to auto detect a
suitable number of entries in tlb fifo. Since allocating tlb entry for
all online harts can reduce the wait time significantly, using the
number of the online harts can make most platforms happy. This auto
detection can avoid most duplicate code for setting tlb fifo size.

Signed-off-by: default avatarInochi Amaoto <inochiama@outlook.com>
Acked-by: default avatarGuo Ren <guoren@kernel.org>
Reviewed-by: default avatarXiang W <wxjstz@126.com>
Reviewed-by: default avatarAnup Patel <anup@brainfault.org>
parent 88ae718d
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment