]> git.baikalelectronics.ru Git - kernel.git/commit
riscv: Use pgtable_l4_enabled to output mmu_type in cpuinfo
authorAlexandre Ghiti <alexandre.ghiti@canonical.com>
Mon, 6 Dec 2021 10:46:52 +0000 (11:46 +0100)
committerPalmer Dabbelt <palmer@rivosinc.com>
Thu, 20 Jan 2022 01:54:10 +0000 (17:54 -0800)
commitbae95e757403dcb90e72c5fb86b03ac328a0adbc
tree55cacfca9117a6eb158b241fa90daf30a9834554
parent54ff495eade6963614d91b61318b402c904ab047
riscv: Use pgtable_l4_enabled to output mmu_type in cpuinfo

Now that the mmu type is determined at runtime using SATP
characteristic, use the global variable pgtable_l4_enabled to output
mmu type of the processor through /proc/cpuinfo instead of relying on
device tree infos.

Signed-off-by: Alexandre Ghiti <alexandre.ghiti@canonical.com>
Reviewed-by: Anup Patel <anup@brainfault.org>
Reviewed-by: Palmer Dabbelt <palmerdabbelt@google.com>
Signed-off-by: Palmer Dabbelt <palmer@rivosinc.com>
arch/riscv/kernel/cpu.c