OMAP2/3 GPTIMER: skip unnecessary TLDR write during non-autoreload
authorPaul Walmsley <paul@pwsan.com>
Wed, 26 Nov 2008 18:48:12 +0000 (10:48 -0800)
committerGrazvydas Ignotas <notasas@gmail.com>
Fri, 9 Jan 2009 10:48:59 +0000 (12:48 +0200)
commit9b8808126a87e3a565dd19f9202768ff09eaf102
treedad54f4cb7883799dc2ae421dbced84a2da6de65
parente54bc68ac04c9dc585d787558469ab949c3100e1
OMAP2/3 GPTIMER: skip unnecessary TLDR write during non-autoreload

The GPTIMER TLDR register does not need to be written if the GPTIMER
is not in autoreload mode.  This is the usual case for dynamic tick-enabled
kernels.

Simulation data indicate that skipping the read that occurs as part of
the write should save at least 300-320 ns for each GPTIMER1 timer
reprogram.  (This assumes L4-Wakeup is at 19MHz and GPTIMER write
posting is enabled.)  Skipping the write itself probably won't have
much impact since it should be posted on the OCP interconnect.

Tested on 2430SDP and 3430SDP.

Signed-off-by: Paul Walmsley <paul@pwsan.com>
Cc: Richard Woodruff <r-woodruff2@ti.com>
Acked-by: Kevin Hilman <khilman@deeprootsystems.com>
Signed-off-by: Tony Lindgren <tony@atomide.com>
arch/arm/plat-omap/dmtimer.c