RISC-V: cpufeature: Add ACPI support in riscv_fill_hwcap()
authorSunil V L <sunilvl@ventanamicro.com>
Mon, 15 May 2023 05:49:21 +0000 (11:19 +0530)
committerPalmer Dabbelt <palmer@rivosinc.com>
Thu, 1 Jun 2023 15:45:08 +0000 (08:45 -0700)
commit396c018332a10a845e8a555ca3fa288c952a37af
tree9444ddde702e5621715c12c32dd99146e4009490
parent914d6f44fc50744163e9bba7178644231f77a46a
RISC-V: cpufeature: Add ACPI support in riscv_fill_hwcap()

On ACPI based systems, the information about the hart
like ISA is provided by the RISC-V Hart Capabilities Table (RHCT).
Enable filling up hwcap structure based on the information in RHCT.

Signed-off-by: Sunil V L <sunilvl@ventanamicro.com>
Acked-by: Rafael J. Wysocki <rafael.j.wysocki@intel.com>
Reviewed-by: Andrew Jones <ajones@ventanamicro.com>
Reviewed-by: Conor Dooley <conor.dooley@microchip.com>
Link: https://lore.kernel.org/r/20230515054928.2079268-15-sunilvl@ventanamicro.com
Signed-off-by: Palmer Dabbelt <palmer@rivosinc.com>
arch/riscv/kernel/cpufeature.c