Skip to content

Use architected timers for delay loop

Will Deacon linux-arm-kernel 2 versions – New

Get series with b4
b4 am [email protected]

Versions newest first · linked by author and title

  1. v2 Latest2 patches 0 repliesNew
  2. v10 of 2 patches 0 repliesSuperseded

Patches in v2 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/2ARM: arch timer: implement read_current_timer and get_cyclesarch/arm/include/asm/arch_timer.h arch/arm/include/asm/timex.h arch/arm/kernel/arch_timer.c+17 -42 replies
1/2ARM: arch timer: implement read_current_timer and get_cycles+0 -00 replies
2/2ARM: delay: allow timer-based delay implementation to be selectedarch/arm/include/asm/delay.h arch/arm/kernel/arch_timer.c arch/arm/kernel/armksyms.c +4 more+109 -254 replies
2/2ARM: delay: allow timer-based delay implementation to be selected+0 -00 replies
2/2ARM: delay: allow timer-based delay implementation to be selectedarch/arm/lib/delay.c+5 -01 reply
2/2ARM: delay: allow timer-based delay implementation to be selected+0 -01 reply
2/2ARM: delay: allow timer-based delay implementation to be selected+0 -00 replies
2/2ARM: delay: allow timer-based delay implementation to be selected+0 -03 replies
2/2ARM: delay: allow timer-based delay implementation to be selected+0 -01 reply
2/2ARM: delay: allow timer-based delay implementation to be selectedarch/arm/lib/delay.c+1 -04 replies
2/2ARM: delay: allow timer-based delay implementation to be selected+0 -01 reply
2/2ARM: delay: allow timer-based delay implementation to be selected+0 -01 reply
2/2ARM: delay: allow timer-based delay implementation to be selected+0 -01 reply
2/2ARM: delay: allow timer-based delay implementation to be selectedarch/arm/include/asm/arch_timer.h arch/arm/include/asm/delay.h arch/arm/include/asm/timex.h +2 more+37 -211 reply
2/2ARM: delay: allow timer-based delay implementation to be selected+0 -01 reply
2/2ARM: delay: allow timer-based delay implementation to be selected+0 -00 replies

Reviews trailers per patch

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

PatchStephen BoydShinya Kuribayashi
1/2R-b
1/2R-b
2/2R-b Tested-off-by
2/2R-b Tested-off-by
2/2R-b Tested-off-by
2/2R-b Tested-off-by
2/2R-b Tested-off-by
2/2R-b Tested-off-by
2/2R-b Tested-off-by
2/2R-b Tested-off-by
2/2R-b Tested-off-by
2/2R-b Tested-off-by
2/2R-b Tested-off-by
2/2R-b Tested-off-by
2/2R-b Tested-off-by
2/2R-b Tested-off-by

Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes.

Read the v2 thread

Cover letter [PATCH v2 0/2] Use architected timers for delay loop

Hello,

This is version 2 of the patches originally posted here:

http://lists.infradead.org/pipermail/linux-arm-kernel/2012-June/105719.html

Thanks to Stephen, Rob and Russell for their comments. The changes since version 1 are:

- Fixed compilation breakage when arch timers are not configured
- Use common definitions for mult/shift between C and asm

Tested on A15 and A9 vexpress platforms (i.e. with and without the architected timers).

All comments welcome,

Will

Will Deacon (2):
ARM: arch timer: implement read_current_timer and get_cycles
ARM: delay: allow timer-based delay implementation to be selected

 arch/arm/include/asm/arch_timer.h      |    3 +
 arch/arm/include/asm/delay.h           |   32 ++++++++++++---
 arch/arm/include/asm/timex.h           |   10 +++--
 arch/arm/kernel/arch_timer.c           |   11 +++++
 arch/arm/kernel/armksyms.c             |    3 +-
 arch/arm/lib/Makefile                  |    2 +-
 arch/arm/lib/{delay.S => delay-loop.S} |   20 ++++-----
 arch/arm/lib/delay.c                   |   66 ++++++++++++++++++++++++++++++++
 arch/arm/mach-sa1100/sleep.S           |    8 ++--
 9 files changed, 126 insertions(+), 29 deletions(-)
 rename arch/arm/lib/{delay.S => delay-loop.S} (81%)
 create mode 100644 arch/arm/lib/delay.c
Signature · 1 line
1.7.4.1