All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH 0/2] Use architected timers for delay loop
@ 2012-06-22 15:09 Will Deacon
  2012-06-22 15:09 ` [PATCH 1/2] ARM: arch timer: implement read_current_timer and get_cycles Will Deacon
                   ` (3 more replies)
  0 siblings, 4 replies; 18+ messages in thread
From: Will Deacon @ 2012-06-22 15:09 UTC (permalink / raw)
  To: linux-arm-kernel

Hello,

This patch series reworks our delay loop implementation to allow the
busy-loop to be replaced with the physical counter included as part of
the architected timer on recent CPUs. The polling implementation is
still maintained to support cores without the timers and we use the same
maths and upper delay bound of 2ms.

Russell - I think my maths is correct, but why can't we increase the
          precision by using a magic constant of 4398046U and a right
	  shift of 31?

As usual, all feedback is 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      |    1 +
 arch/arm/include/asm/delay.h           |   19 +++++++--
 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} |   16 +++----
 arch/arm/lib/delay.c                   |   66 ++++++++++++++++++++++++++++++++
 arch/arm/mach-sa1100/sleep.S           |    8 ++--
 9 files changed, 112 insertions(+), 24 deletions(-)
 rename arch/arm/lib/{delay.S => delay-loop.S} (85%)
 create mode 100644 arch/arm/lib/delay.c

-- 
1.7.4.1

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

end of thread, other threads:[~2012-06-27  9:41 UTC | newest]

Thread overview: 18+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2012-06-22 15:09 [PATCH 0/2] Use architected timers for delay loop Will Deacon
2012-06-22 15:09 ` [PATCH 1/2] ARM: arch timer: implement read_current_timer and get_cycles Will Deacon
2012-06-25 21:39   ` Stephen Boyd
2012-06-26 10:37     ` Will Deacon
2012-06-26 17:44       ` Stephen Boyd
2012-06-22 15:09 ` [PATCH 2/2] ARM: delay: allow timer-based delay implementation to be selected Will Deacon
2012-06-25 21:39   ` Stephen Boyd
2012-06-26 10:49     ` Will Deacon
2012-06-26 15:54       ` Will Deacon
2012-06-26 16:00         ` Rob Herring
2012-06-26 16:28           ` Will Deacon
2012-06-27  2:07       ` Stephen Boyd
2012-06-27  9:41         ` Will Deacon
2012-06-22 22:26 ` [PATCH 0/2] Use architected timers for delay loop Russell King - ARM Linux
2012-06-25 10:03   ` Will Deacon
2012-06-25 21:38 ` Stephen Boyd
2012-06-26 10:35   ` Will Deacon
2012-06-26 17:42     ` Stephen Boyd

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.