riscv: cleanup svpbmt cpufeature probing
authorHeiko Stuebner <heiko@sntech.de>
Mon, 5 Sep 2022 11:10:23 +0000 (13:10 +0200)
committerPalmer Dabbelt <palmer@rivosinc.com>
Thu, 13 Oct 2022 15:46:26 +0000 (08:46 -0700)
commite47bddcb2ec531022a915f896f13586470b593d0
treeab455b3db4918574aaae3abf5142ab82ea9c6518
parentcdcdb008552670abd6f60a1777d3723e6ca2716b
riscv: cleanup svpbmt cpufeature probing

For better readability (and compile time coverage) use IS_ENABLED
instead of ifdef and drop the new unneeded switch statement.

Signed-off-by: Heiko Stuebner <heiko@sntech.de>
Reviewed-by: Guo Ren <guoren@kernel.org>
Reviewed-by: Conor Dooley <conor.dooley@microchip.com>
Reviewed-by: Andrew Jones <ajones@ventanamicro.com>
Link: https://lore.kernel.org/r/20220905111027.2463297-2-heiko@sntech.de
Signed-off-by: Palmer Dabbelt <palmer@rivosinc.com>
arch/riscv/kernel/cpufeature.c