Skip to content

clocksouce/timer-clint|riscv: some improvements

Jisheng Zhang linux-riscv lkml 2 versions – New

Get series with b4
b4 am [email protected]

Versions newest first · linked by author and title

  1. v2 Latest3 patches 0 repliesNew
  2. v13 patches 1 replySuperseded

Changes in v2 from the cover letter

- use U64_MAX instead of ULONG_MAX in clint_clock_shutdown, this is to "produce a 64-bit value on riscv32" as pointed out by Samuel

Patches in v2 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/3clocksource/drivers/timer-riscv: Add set_state_oneshot_stoppeddrivers/clocksource/timer-riscv.c+6 -50 replies
2/3clocksource/drivers/timer-clint: Add set_state_shutdowndrivers/clocksource/timer-clint.c+14 -40 replies
3/3clocksource/drivers/timer-clint: Add set_state_oneshot_stoppeddrivers/clocksource/timer-clint.c+1 -00 replies

Reviews trailers per patch

No Reviewed-by, Acked-by or Tested-by trailers for v2 yet.

Read the v2 thread

Cover letter [PATCH v2 0/3] clocksouce/timer-clint|riscv: some improvements

This series is a simple improvement for timer-clint and timer-riscv:

Add set_state_shutdown for timer-clint, this hook is used when switching clockevent from timer-clint to another timer.

Add set_state_oneshot_stopped for both timer-clint and timer-riscv, this hook is to avoid spurious timer interrupts when KTIME_MAX is usd. Check commit 8fff52fd5093 ("clockevents: Introduce CLOCK_EVT_STATE_ONESHOT_STOPPED state") for more information.

Since v1:
- use U64_MAX instead of ULONG_MAX in clint_clock_shutdown, this is to "produce a 64-bit value on riscv32" as pointed out by Samuel

Jisheng Zhang (3):
clocksource/drivers/timer-riscv: Add set_state_oneshot_stopped clocksource/drivers/timer-clint: Add set_state_shutdown clocksource/drivers/timer-clint: Add set_state_oneshot_stopped

 drivers/clocksource/timer-clint.c | 19 +++++++++++++++----
 drivers/clocksource/timer-riscv.c | 11 ++++++-----
 2 files changed, 21 insertions(+), 9 deletions(-)
Signature · 1 line
2.43.0