[PATCH v2 4/4] riscv: cpufeature: Extract common elements from extension checking

Andy Chiu andy.chiu at sifive.com
Fri Jun 21 01:38:30 PDT 2024


On Mon, Jun 10, 2024 at 12:34 PM Charlie Jenkins <charlie at rivosinc.com> wrote:
>
> The __riscv_has_extension_likely() and __riscv_has_extension_unlikely()
> functions from the vendor_extensions.h can be used to simplify the
> standard extension checking code as well. Migrate those functions to
> cpufeature.h and reorganize the code in the file to use the functions.
>
> Signed-off-by: Charlie Jenkins <charlie at rivosinc.com>
> Reviewed-by: Conor Dooley <conor.dooley at microchip.com>

Reviewed-by: Andy Chiu <andy.chiu at sifive.com>



More information about the linux-riscv mailing list