]> git.baikalelectronics.ru Git - kernel.git/commit
MIPS: malta-time: Start GIC count before syncing to RTC
authorJames Hogan <james.hogan@imgtec.com>
Fri, 22 Apr 2016 17:19:14 +0000 (18:19 +0100)
committerRalf Baechle <ralf@linux-mips.org>
Fri, 13 May 2016 13:30:25 +0000 (15:30 +0200)
commitbe7d8c3519b89354529fbc2132a7db95f7903c67
treee87f94a86ebe3ac3cca6ad7e444d439e08bf6776
parentf4f1549bcdc27eb0c862e0367d064d21912f87ae
MIPS: malta-time: Start GIC count before syncing to RTC

The sampling of the GIC counter on Malta after observing a rising edge
of the RTC update flag differs slightly between the first and second
sample, with the first sample also calling gic_start_count(). The two
samples should really be taken as similarly as possible to get the most
accurate figure, so move the gic_start_count() call before detecting the
rising edge.

Signed-off-by: James Hogan <james.hogan@imgtec.com>
Cc: James Hogan <james.hogan@imgtec.com>
Cc: linux-mips@linux-mips.org
Patchwork: https://patchwork.linux-mips.org/patch/13173/
Signed-off-by: Ralf Baechle <ralf@linux-mips.org>
arch/mips/mti-malta/malta-time.c