]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit1e7a8a70d182154c9ffbf588a4879b168bd9ef10
treeab455b3db4918574aaae3abf5142ab82ea9c6518
parente8e5981d1447192a8df8bc6b86ba722c104222c7
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