diff options
author | Charlie Jenkins <charlie@rivosinc.com> | 2024-07-19 19:15:21 +0300 |
---|---|---|
committer | Palmer Dabbelt <palmer@rivosinc.com> | 2024-07-23 01:36:57 +0300 |
commit | d4c8d79f5199055da38f880f782a3e62c599ff5d (patch) | |
tree | 09bbbd160a31477f36617bb5cb370ad775b12272 /drivers/fpga/fpga-mgr.c | |
parent | 0f2425411101128a38ad0166268975ca11fbcaeb (diff) | |
download | linux-d4c8d79f5199055da38f880f782a3e62c599ff5d.tar.xz |
riscv: cpufeature: Extract common elements from extension checking
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@rivosinc.com>
Reviewed-by: Conor Dooley <conor.dooley@microchip.com>
Reviewed-by: Andy Chiu <andy.chiu@sifive.com>
Link: https://lore.kernel.org/r/20240719-support_vendor_extensions-v3-4-0af7587bbec0@rivosinc.com
Signed-off-by: Palmer Dabbelt <palmer@rivosinc.com>
Diffstat (limited to 'drivers/fpga/fpga-mgr.c')
0 files changed, 0 insertions, 0 deletions