OSDN Git Service

RISC-V: Move struct riscv_cpuinfo to new header
authorEvan Green <evan@rivosinc.com>
Fri, 7 Apr 2023 23:10:58 +0000 (16:10 -0700)
committerPalmer Dabbelt <palmer@rivosinc.com>
Tue, 18 Apr 2023 22:48:03 +0000 (15:48 -0700)
commitff77cf5b2e033d0bb5e3b7f83ebf65c5adc20d12
tree4ec62272a9dafefb45b548919808ef8a7d97ef10
parentfe15c26ee26efa11741a7b632e9f23b01aca4cc6
RISC-V: Move struct riscv_cpuinfo to new header

In preparation for tracking and exposing microarchitectural details to
userspace (like whether or not unaligned accesses are fast), move the
riscv_cpuinfo struct out to its own new cpufeatures.h header. It will
need to be used by more than just cpu.c.

Signed-off-by: Evan Green <evan@rivosinc.com>
Reviewed-by: Conor Dooley <conor.dooley@microchip.com>
Reviewed-by: Heiko Stuebner <heiko.stuebner@vrull.eu>
Tested-by: Heiko Stuebner <heiko.stuebner@vrull.eu>
Reviewed-by: Paul Walmsley <paul.walmsley@sifive.com>
Link: https://lore.kernel.org/r/20230407231103.2622178-2-evan@rivosinc.com
Signed-off-by: Palmer Dabbelt <palmer@rivosinc.com>
arch/riscv/include/asm/cpufeature.h [new file with mode: 0644]
arch/riscv/kernel/cpu.c