MN10300: Make sched_clock() report time since boot
authorDavid Howells <dhowells@redhat.com>
Wed, 24 Sep 2008 16:48:31 +0000 (17:48 +0100)
committerLinus Torvalds <torvalds@linux-foundation.org>
Wed, 24 Sep 2008 23:38:17 +0000 (16:38 -0700)
Make sched_clock() report time since boot rather than time since last
timer interrupt.

Make sched_clock() expand and scale the 32-bit TSC value running at
IOCLK speed (~33MHz) to a 64-bit nanosecond counter, using cnt32_to_63()
acquired from the ARM arch and without using slow DIVU instructions
every call.

Signed-off-by: David Howells <dhowells@redhat.com>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>

No differences found