]> git.ipfire.org Git - thirdparty/kernel/linux.git/commit
riscv: Rearrange hwcap.h and cpufeature.h
authorXiao Wang <xiao.w.wang@intel.com>
Tue, 31 Oct 2023 06:45:52 +0000 (14:45 +0800)
committerPalmer Dabbelt <palmer@rivosinc.com>
Thu, 9 Nov 2023 18:15:51 +0000 (10:15 -0800)
commite72c4333d2f2e7f2200f71a88c0480fd2a769a64
tree3fbea8f0e7b28f499221ac66eef8fd7eb3d0d1bc
parent68444b93ed6c622f77745ea25f8db05cd0afb1b6
riscv: Rearrange hwcap.h and cpufeature.h

Now hwcap.h and cpufeature.h are mutually including each other, and most of
the variable/API declarations in hwcap.h are implemented in cpufeature.c,
so, it's better to move them into cpufeature.h and leave only macros for
ISA extension logical IDs in hwcap.h.

BTW, the riscv_isa_extension_mask macro is not used now, so this patch
removes it.

Suggested-by: Andrew Jones <ajones@ventanamicro.com>
Signed-off-by: Xiao Wang <xiao.w.wang@intel.com>
Reviewed-by: Andrew Jones <ajones@ventanamicro.com>
Link: https://lore.kernel.org/r/20231031064553.2319688-2-xiao.w.wang@intel.com
Signed-off-by: Palmer Dabbelt <palmer@rivosinc.com>
14 files changed:
arch/riscv/include/asm/cpufeature.h
arch/riscv/include/asm/elf.h
arch/riscv/include/asm/hwcap.h
arch/riscv/include/asm/pgtable.h
arch/riscv/include/asm/switch_to.h
arch/riscv/include/asm/vector.h
arch/riscv/kvm/aia.c
arch/riscv/kvm/main.c
arch/riscv/kvm/tlb.c
arch/riscv/kvm/vcpu_fp.c
arch/riscv/kvm/vcpu_onereg.c
arch/riscv/kvm/vcpu_vector.c
drivers/clocksource/timer-riscv.c
drivers/perf/riscv_pmu_sbi.c