]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit084fb2c9fd1a8fb74a852ec23a0e07c2a9a15887
tree5a8855081c766eebab8254d40a6902d782c71d46
parent5da987fd85130855e85c204ef70320da44d13fe3
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