Skip to content

arm: arch_timer cleanups and niceties

Mark Rutland linux-arm-kernel 3 versions – New

Get series with b4
b4 am [email protected]

Versions newest first · linked by author and title

  1. v3 Latest5 patches 0 repliesNew
  2. v25 patches 0 repliesSuperseded
  3. v10 of 5 patches 0 repliesSuperseded

Patches in v3 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/5ARM: hyp: initialize CNTVOFF to zeroarch/arm/kernel/hyp-stub.S+2 -00 replies
2/5ARM: KVM: arch_timers: zero CNTVOFF upon return to hostarch/arm/kvm/interrupts_head.S+4 -00 replies
3/5clocksource: arch_timer: use virtual countersarch/arm/include/asm/arch_timer.h arch/arm64/include/asm/arch_timer.h drivers/clocksource/arm_arch_timer.c +1 more+6 -380 replies
4/5arm: fix up ARM_ARCH_TIMER selectsarch/arm/mach-exynos/Kconfig arch/arm/mach-shmobile/Kconfig arch/arm/mach-tegra/Kconfig +1 more+5 -51 reply
5/5ARM: arch_timer: stop virtual timer when booted in HYP modearch/arm/kernel/hyp-stub.S+5 -00 replies

Reviews trailers per patch

All 5 patches have a Reviewed-by or Acked-by.

PatchSantosh ShilimkarMarc ZyngierChristoffer DallCatalin MarinasStephen WarrenSimon HormanKukjin Kim
1/5A-b
2/5A-b A-b A-b
3/5A-b A-b A-b
4/5A-b A-b A-b A-b
5/5A-b

Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes. Scroll the table sideways for all 7 reviewers.

Read the v3 thread

Cover letter [PATCHv3 0/5] arm: arch_timer cleanups and niceties

The following patches clean up some (harmless) fallout from the changes in 3.9, and make the driver always use the virtual counter, eliminating problems relating to choosing which counters to use (racy initialisation, branches in hot paths).

The patches can also be found in my public git tree:
git://linux-arm.org/git/linux-mr.git clocks/arch-timer-cleanups

Russell, are you happy to take these for 3.11 if I send a pull request or drop these in your patch system?

Since v1 [1]:
* Rebased to v3.10-rc1
* Fix up mach-shmobile's selection of ARCH_ARM_TIMER
Since v2: [2]:
* Added Simon Horman's ack for shmobile
* Clarified virtual timer CNTVOFF requirement per Christopher Covington's comments.

Thanks,
Mark.

[1] http://lists.infradead.org/pipermail/linux-arm-kernel/2013-March/158604.html
[2] http://lists.infradead.org/pipermail/linux-arm-kernel/2013-May/168536.html

Marc Zyngier (2):
ARM: hyp: initialize CNTVOFF to zero
ARM: arch_timer: stop virtual timer when booted in HYP mode

Mark Rutland (3):
ARM: KVM: arch_timers: zero CNTVOFF upon return to host
clocksource: arch_timer: use virtual counters
arm: fix up ARM_ARCH_TIMER selects

 arch/arm/include/asm/arch_timer.h    |  9 ---------
 arch/arm/kernel/hyp-stub.S           |  7 +++++++
 arch/arm/kvm/interrupts_head.S       |  4 ++++
 arch/arm/mach-exynos/Kconfig         |  2 +-
 arch/arm/mach-shmobile/Kconfig       |  4 ++--
 arch/arm/mach-tegra/Kconfig          |  2 +-
 arch/arm/mach-virt/Kconfig           |  2 +-
 arch/arm64/include/asm/arch_timer.h  | 10 ----------
 drivers/clocksource/arm_arch_timer.c | 23 +++++------------------
 include/clocksource/arm_arch_timer.h |  2 +-
 10 files changed, 22 insertions(+), 43 deletions(-)
Signature · 1 line
1.8.1.1