linux-kernel.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH v3 0/3] clocksource/drivers/arm_global_timer: Three improvements
@ 2024-02-25 15:13 Martin Blumenstingl
  2024-02-25 15:13 ` [PATCH v3 1/3] clocksource/drivers/arm_global_timer: Make gt_target_rate unsigned long Martin Blumenstingl
                   ` (3 more replies)
  0 siblings, 4 replies; 8+ messages in thread
From: Martin Blumenstingl @ 2024-02-25 15:13 UTC (permalink / raw)
  To: daniel.lezcano, tglx
  Cc: linux-arm-kernel, linux-kernel, patrice.chotard, linux-amlogic,
	Martin Blumenstingl

These are three improvements / fixes for the arm_global_timer driver.

Changes from v2 at [1]:
- add patches 1 and 2 (which is why this is now a series instead of a
  single patch) as in the code review process more issues have been
  spotted that need fixing
- remove "psv < 0" check from patch 3 (as this check is now impossible
  as patch 2 makes the variable in question an unsigned long with a
  check for zero and returning before decrementing psv).

Changes from v1 at [0]:
- use FIELD_FIT() to check whether psv overflows the register
- update the description accordingly


[0] https://lore.kernel.org/lkml/20240221214348.2299636-1-martin.blumenstingl@googlemail.com/
[1] https://lore.kernel.org/lkml/20240224213529.2601333-1-martin.blumenstingl@googlemail.com/


Martin Blumenstingl (3):
  clocksource/drivers/arm_global_timer: Make gt_target_rate unsigned
    long
  clocksource/drivers/arm_global_timer: Guard against division by zero
  clocksource/drivers/arm_global_timer: Simplify prescaler register
    access

 drivers/clocksource/arm_global_timer.c | 31 ++++++++++++--------------
 1 file changed, 14 insertions(+), 17 deletions(-)

-- 
2.44.0


^ permalink raw reply	[flat|nested] 8+ messages in thread

end of thread, other threads:[~2024-03-18 10:07 UTC | newest]

Thread overview: 8+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2024-02-25 15:13 [PATCH v3 0/3] clocksource/drivers/arm_global_timer: Three improvements Martin Blumenstingl
2024-02-25 15:13 ` [PATCH v3 1/3] clocksource/drivers/arm_global_timer: Make gt_target_rate unsigned long Martin Blumenstingl
2024-03-18 10:07   ` [tip: timers/core] " tip-bot2 for Martin Blumenstingl
2024-02-25 15:13 ` [PATCH v3 2/3] clocksource/drivers/arm_global_timer: Guard against division by zero Martin Blumenstingl
2024-03-18 10:07   ` [tip: timers/core] " tip-bot2 for Martin Blumenstingl
2024-02-25 15:13 ` [PATCH v3 3/3] clocksource/drivers/arm_global_timer: Simplify prescaler register access Martin Blumenstingl
2024-03-18 10:07   ` [tip: timers/core] " tip-bot2 for Martin Blumenstingl
2024-02-26 11:18 ` [PATCH v3 0/3] clocksource/drivers/arm_global_timer: Three improvements Daniel Lezcano

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).