Skip to content

MSM timer fixes and cleanups

Stephen Boyd linux-arm-kernel linux-arm-msm lkml 1 version In review

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest8 patches 2 repliesIn review

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/8msm: timer: Tighten #ifdef for local timer supportarch/arm/mach-msm/timer.c+2 -30 replies
2/8msm: timer: Cleanup #includes and #definesarch/arm/mach-msm/timer.c+7 -190 replies
3/8msm: timer: Use GPT for clockevents and DGT for clocksourcearch/arm/mach-msm/timer.c+52 -690 replies
4/8msm: timer: Fix ONESHOT mode interruptsarch/arm/mach-msm/timer.c+20 -50 replies
5/8msm: timer: Remove msm_clocks[] and simplify codearch/arm/mach-msm/timer.c+76 -1450 replies
6/8msm: timer: Remove SoC specific #ifdefsarch/arm/mach-msm/timer.c+17 -210 replies
7/8msm: timer: Setup interrupt after registering clockeventarch/arm/mach-msm/timer.c+2 -40 replies
8/8msm: timer: Use clockevents_config_and_register()arch/arm/mach-msm/timer.c+1 -100 replies

Reviews trailers per patch

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

Read the v1 thread

Cover letter [PATCH 0/8] MSM timer fixes and cleanups

Currently the MSM timers use the same physical counter for the clockevent and clocksource. This works as long as the clocksource isn't stopped from ticking during normal operation but unfortunately that isn't the case and the clocksource is stopped when the clockevent is shutdown. Even worse, switching the clocksource via sysfs at runtime will hang the system.

This series reorganizes the MSM timer code so that one counter is only used for either a clocksource or a clockevent, and not both. In the process we reduce the lines of code and fix a few long-standing bugs.

I plan to add sched_clock support on top of this series once the ARM generic patches are posted again (hopefully next week).

Cc Thomas Gleixner <[email protected]>
Cc Marc Zyngier <[email protected]>

Stephen Boyd (8):
msm: timer: Tighten #ifdef for local timer support
msm: timer: Cleanup #includes and #defines
msm: timer: Use GPT for clockevents and DGT for clocksource
msm: timer: Fix ONESHOT mode interrupts
msm: timer: Remove msm_clocks[] and simplify code
msm: timer: Remove SoC specific #ifdefs
msm: timer: Setup interrupt after registering clockevent
msm: timer: Use clockevents_config_and_register()

 arch/arm/mach-msm/timer.c |  347 ++++++++++++++++-----------------------------
 1 files changed, 124 insertions(+), 223 deletions(-)
Signature · 2 lines
Sent by an employee of the Qualcomm Innovation Center, Inc.
The Qualcomm Innovation Center, Inc. is a member of the Code Aurora Forum.