Lines Matching +full:1 +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
20 * OSF/1 kernel. The SHIFT_HZ define expresses the same value as 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)
94 * 1. Because people otherwise forget
173 #define INITIAL_JIFFIES ((unsigned long)(unsigned int) (-300*HZ))
183 * to wait "jiffies+1" in order to guarantee that we wait
184 * at _least_ "jiffies" - so "jiffies+1" had better still
187 #define MAX_JIFFY_OFFSET ((LONG_MAX >> 1)-1)
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
253 * check if the sign bit is set. If not, we bump the shift count by 1.
255 * We know it is set for HZ = 1024 and HZ = 100 not for 1000.
269 TICK_NSEC -1) / (u64)TICK_NSEC))
271 #define NSEC_CONVERSION ((unsigned long)((((u64)1 << NSEC_JIFFIE_SC) +\
272 TICK_NSEC -1) / (u64)TICK_NSEC))
274 * The maximum jiffie value is (MAX_INT >> 1). Here we translate that
283 (SH_DIV((MAX_JIFFY_OFFSET >> SEC_JIFFIE_SC) * TICK_NSEC, NSEC_PER_SEC, 1) - 1)
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