Re: [PATCH RESEND] clocksource/timer-riscv: use riscv_has_extension_likely

From: Daniel Lezcano

Date: Wed Nov 25 2026 - 11:51:23 EST


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@xxxxxxxxxx>
Still waiting for maintainers' blessing ...