Use architected timers for delay loop
Get series with b4
b4 am [email protected]Versions newest first · linked by author and title
- v2 Latest2 patches 0 repliesNew
- v10 of 2 patches 0 repliesSuperseded
Patches in v2 No applies recorded yet
Reviews trailers per patch
All 16 patches have a Reviewed-by or Acked-by.
Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes.
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.cSignature · 1 line
1.7.4.1