Helpers for converting time to and from tsc ticks
authorBarret Rhoden <brho@cs.berkeley.edu>
Thu, 4 Aug 2011 06:53:14 +0000 (23:53 -0700)
committerKevin Klues <klueska@cs.berkeley.edu>
Thu, 3 Nov 2011 00:36:06 +0000 (17:36 -0700)
commit0b0e8f02b7b840bcf13d0b6a31654a2c58cb68bc
treee77eed61112b1fe48fa3238cfd04a775abc1b262
parent3489b0b5d219a3f2231b3972d3a03f07c60d03ff
Helpers for converting time to and from tsc ticks

Don't refer to system_timing.tsc_freq directly.  The helpers handle
things such as wraparound/overflow, which was definitely a problem when
dealing with nsec.

Incidentally, wraparound/overflow is possibly why Dave had those
"impossible" numbers back in the day.
kern/arch/i686/apic.c
kern/arch/i686/kdebug.c
kern/include/ros/common.h
kern/include/time.h
kern/src/alarm.c
kern/src/monitor.c
kern/src/process.c
kern/src/syscall.c
kern/src/time.c