25 #include <linux/module.h>
40 #define NSEC_PER_JIFFY ((NSEC_PER_SEC+HZ/2)/HZ)
54 #define JIFFIES_SHIFT 8
70 #if (BITS_PER_LONG < 64)
87 static int __init init_jiffies_clocksource(
void)
103 u64 nsec_per_tick, shift_hz;
104 long cycles_per_tick;
113 cycles_per_tick = (cycles_per_second +
HZ/2)/
HZ;
115 shift_hz = (
u64)cycles_per_second << 8;
116 shift_hz += cycles_per_tick/2;
117 do_div(shift_hz, cycles_per_tick);
120 nsec_per_tick += (
u32)shift_hz/2;