diff options
| author | Matt Evans <[email protected]> | 2023-02-01 19:49:42 +0000 |
|---|---|---|
| committer | Daniel Lezcano <[email protected]> | 2023-02-13 12:10:17 +0000 |
| commit | 225b9596cb0227c1c1b1e4a836dad43595c3e61a (patch) | |
| tree | b1d67493daa4f2f1db2fadae83f997daf2e4d74e /lib/string.c | |
| parent | clocksource/drivers/timer-microchip-pit64b: Add delay timer (diff) | |
| download | kernel-225b9596cb0227c1c1b1e4a836dad43595c3e61a.tar.gz kernel-225b9596cb0227c1c1b1e4a836dad43595c3e61a.zip | |
clocksource/drivers/riscv: Patch riscv_clock_next_event() jump before first use
A static key is used to select between SBI and Sstc timer usage in
riscv_clock_next_event(), but currently the direction is resolved
after cpuhp_setup_state() is called (which sets the next event). The
first event will therefore fall through the sbi_set_timer() path; this
breaks Sstc-only systems. So, apply the jump patching before first
use.
Fixes: 9f7a8ff6391f ("RISC-V: Prefer sstc extension if available")
Signed-off-by: Matt Evans <[email protected]>
Reviewed-by: Palmer Dabbelt <[email protected]>
Acked-by: Palmer Dabbelt <[email protected]>
Reviewed-by: Anup Patel <[email protected]>
Link: https://lore.kernel.org/r/[email protected]
Signed-off-by: Daniel Lezcano <[email protected]>
Diffstat (limited to 'lib/string.c')
0 files changed, 0 insertions, 0 deletions
