introduce unified static key mechanism for ISA ext
Get series with b4
b4 am [email protected]Versions newest first · linked by author and title
- v2 Latest2 patches 5 repliesIn review
- v12 patches 2 repliesSuperseded
Changes in v2 from the cover letter
- fix typo, thank Atish
- remove riscv_isa_have_key_extension() instead use the isa ext keys directly as pointed out by Atish.
Patches in v2 No applies recorded yet
| # | Subject and files | Size | Replies | Applied |
|---|---|---|---|---|
| 1/2 | riscv: introduce unified static key mechanism for ISA extensionsarch/ arch/ | +32 | 2 replies | |
| 2/2 | riscv: switch has_fpu() to the unified static key mechanismarch/ arch/ | +2 | 2 replies |
Reviews trailers per patch
All 2 patches have a Reviewed-by or Acked-by.
| Patch | Atish Patra | Anup Patel |
|---|---|---|
| 1/2 | R-b | R-b |
| 2/2 | R-b | R-b |
Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes.
Cover letter [PATCH v2 0/2] introduce unified static key mechanism for ISA ext
Currently, riscv has several extensions which may not be supported on all riscv platforms, for example, FPU and so on. To support unified kernel Image style, we need to check whether the feature is supported or not. If the check sits at hot code path, the performance will be impacted a lot. static key can be used to solve the issue. In the past, FPU support has been converted to use static key mechanism. I believe we will have similar cases in the future.
Since v1:
- fix typo, thank Atish
- remove riscv_isa_have_key_extension() instead use the isa ext keys directly as pointed out by Atish.
Jisheng Zhang (2):
riscv: introduce unified static key mechanism for ISA extensions
riscv: switch has_fpu() to the unified static key mechanism
arch/riscv/include/asm/hwcap.h | 25 +++++++++++++++++++++++++ arch/riscv/include/asm/switch_to.h | 4 ++-- arch/riscv/kernel/cpufeature.c | 14 +++++++------- 3 files changed, 34 insertions(+), 9 deletions(-)
Signature · 1 line
2.34.1