7 #include <minix/config.h>
8 #include <minix/const.h>
9 #include <minix/minlib.h>
10 #include <machine/archtypes.h>
14 #ifndef CONFIG_MAX_CPUS
15 #define CONFIG_MAX_CPUS 1
18 #define MICROHZ 1000000 /* number of micros per second */
19 #define MICROSPERTICK(h) (MICROHZ/(h)) /* number of micros per HZ tick */
21 static u32_t calib_hz
= 600000000;
23 u32_t
tsc_64_to_micros(u64_t tsc
)
31 u32_t
tsc_to_micros(u32_t low
, u32_t high
)
33 return tsc_64_to_micros(make64(low
, high
));