Lines Matching full:hz

13 #include <asm/param.h>			/* for HZ */
18 * model. The HZ variable establishes the timer interrupt frequency, 100 Hz
19 * for the SunOS kernel, 256 Hz for the Ultrix kernel and 1024 Hz for the
23 #if HZ >= 12 && HZ < 24
25 #elif HZ >= 24 && HZ < 48
27 #elif HZ >= 48 && HZ < 96
29 #elif HZ >= 96 && HZ < 192
31 #elif HZ >= 192 && HZ < 384
33 #elif HZ >= 384 && HZ < 768
35 #elif HZ >= 768 && HZ < 1536
37 #elif HZ >= 1536 && HZ < 3072
39 #elif HZ >= 3072 && HZ < 6144
41 #elif HZ >= 6144 && HZ < 12288
44 # error Invalid value of HZ.
60 #define LATCH ((CLOCK_TICK_RATE + HZ/2) / HZ) /* For divider */
65 #define TICK_USEC ((USEC_PER_SEC + HZ/2) / HZ)
173 #define INITIAL_JIFFIES ((unsigned long)(unsigned int) (-300*HZ))
199 * timex.h) adjusts the scaling for different HZ values.
216 * about 3-4 bits of precision (less for smaller values of HZ).
232 * that means using a different scale for each range of HZ values (as
255 * We know it is set for HZ = 1024 and HZ = 100 not for 1000.
302 #if HZ <= MSEC_PER_SEC && !(MSEC_PER_SEC % HZ)
304 * HZ is equal to or smaller than 1000, and 1000 is a nice round
305 * multiple of HZ, divide with the factor between them, but round
310 return (m + (MSEC_PER_SEC / HZ) - 1) / (MSEC_PER_SEC / HZ); in _msecs_to_jiffies()
312 #elif HZ > MSEC_PER_SEC && !(HZ % MSEC_PER_SEC)
314 * HZ is larger than 1000, and HZ is a nice round multiple of 1000 -
323 return m * (HZ / MSEC_PER_SEC); in _msecs_to_jiffies()
332 if (HZ > MSEC_PER_SEC && m > jiffies_to_msecs(MAX_JIFFY_OFFSET)) in _msecs_to_jiffies()
359 * the HZ range specific helpers _msecs_to_jiffies() are called both
375 #if !(USEC_PER_SEC % HZ)
378 return (u + (USEC_PER_SEC / HZ) - 1) / (USEC_PER_SEC / HZ); in _usecs_to_jiffies()
406 * the HZ range specific helpers _usecs_to_jiffies() are called both