]> www.pilppa.org Git - linux-2.6-omap-h63xx.git/commit
[ARM] 3980/1: extend the ARM Versatile sched_clock implementation from 32 to 63 bit
authorNicolas Pitre <nico@cam.org>
Mon, 4 Dec 2006 19:29:21 +0000 (20:29 +0100)
committerRussell King <rmk+kernel@arm.linux.org.uk>
Thu, 7 Dec 2006 16:06:53 +0000 (16:06 +0000)
commit752bee178ee107aa3dd87a9aeba970444034c6fb
tree7bc5f554781182c88602c2dd43ddd664a32aac24
parent2f1675c11a0a214855ff6cba23aca239eef7a5fb
[ARM] 3980/1: extend the ARM Versatile sched_clock implementation from 32 to 63 bit
 period

This provides a 63 bit clock counter guaranteed to be monotonic over a
period of 35583 days instead of a clock wrap every 179 seconds, as long
as sched_clock() is called at least once every 89 seconds.  This should
not be a problem in practice, although a kernel timer could be scheduled
every 80 seconds for example simply to call sched_clock() making sure
top bits are always synchronized if need be.

Signed-off-by: Nicolas Pitre <nico@cam.org>
Signed-off-by: Russell King <rmk+kernel@arm.linux.org.uk>
arch/arm/mach-versatile/core.c