]> 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)
commit7b4112d5bd8c0f7b3a42730af701be287f5efd84
treeab455b3db4918574aaae3abf5142ab82ea9c6518
parentfb18a95e75b2b9e14d7dfbd033d018f91084195f
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