]> pilppa.com Git - linux-2.6-omap-h63xx.git/commit
ARM: OMAP: Use posted mode for dmtimer
authorRichard Woodruff <r-woodruff2@ti.com>
Mon, 31 Mar 2008 10:48:00 +0000 (13:48 +0300)
committerTony Lindgren <tony@atomide.com>
Mon, 31 Mar 2008 10:48:00 +0000 (13:48 +0300)
commit7622c36330e1fd365dc258bbb40996ec9a1539b6
tree4c010effa24b0d1c4d7ed0c3223294817b8c0dd6
parent3beb991e037672ee5361c98fe4f067626f61a423
ARM: OMAP: Use posted mode for dmtimer

This patch adds the use of write posting for the timer.  Previously, every
write could lock the requestor for almost 3x32KHz cycles.  This patch only
synchronizes before writes and reads instead of after them and it does
it on per register basis.  Doing it this way there is some chance to hide
some of the sync latency.  It also removes some needless reads when
non-posted mode is there.  With out this fix the read/writes take almost
2% CPU load @500MHz just waiting on tick timer registers.

Also define new 34xx only registers.

Signed-off-by: Richard Woodruff <r-woodruff2@ti.com>
Signed-off-by: Tony Lindgren <tony@atomide.com>
arch/arm/plat-omap/dmtimer.c