[PATCH RESEND] clocksource/timer-riscv: use riscv_has_extension_likely
Daniel Lezcano
daniel.lezcano at oss.qualcomm.com
Wed Nov 25 08:51:14 PST 2026
On 11/7/26 14:49, Jisheng Zhang wrote:
> Instead of static branch, use riscv_has_extension_likely() to check
> whether SSTC is supported or not. For one thing, this is straight
> forward, no need to add and enable/disable a static branch during
> probe; For another, riscv_has_extension_likely() is based on
> alternative mechanism, it avoid some downsides of static branch, for
> example static branch's metadata in the __jump_table section, which is
> not discarded after ISA extensions are finalized, wastes some space.
>
> Signed-off-by: Jisheng Zhang <jszhang at kernel.org>
Still waiting for maintainers' blessing ...
More information about the linux-riscv
mailing list