ARM: PRIMA2: delete redundant codes to restore LATCHED when timer resumes
authorBarry Song <Baohua.Song@csr.com>
Mon, 30 Jul 2012 05:29:30 +0000 (13:29 +0800)
committerOlof Johansson <olof@lixom.net>
Thu, 2 Aug 2012 17:05:27 +0000 (10:05 -0700)
commitdebeaf6c2ded82bea65c1a487fb629fb0d2bb66f
tree5a8855081c766eebab8254d40a6902d782c71d46
parent52c2ebd757d94f4a7215c3fc906646b24f44ecab
ARM: PRIMA2: delete redundant codes to restore LATCHED when timer resumes

The only way to write LATCHED registers to write LATCH_BIT to LATCH register,
that will latch COUNTER into LATCHED.e.g.
writel_relaxed(SIRFSOC_TIMER_LATCH_BIT, sirfsoc_timer_base +
SIRFSOC_TIMER_LATCH);

Writing values to LATCHED registers directly is useless at all.

Signed-off-by: Barry Song <Baohua.Song@csr.com>
Signed-off-by: Olof Johansson <olof@lixom.net>
arch/arm/mach-prima2/timer.c