Make HZ_TO_STD macro name lowercase.
[linux-2.6/linux-mips.git] / include / asm-mips / param.h
blob5487778ca7b90eb06515adc304e0e293d7f5e353
1 #ifndef _ASM_PARAM_H
2 #define _ASM_PARAM_H
4 #ifndef HZ
6 #ifdef __KERNEL__
8 /* Safeguard against user stupidity */
9 #ifdef _SYS_PARAM_H
10 #error Do not include <asm/param.h> with __KERNEL__ defined!
11 #endif
13 #include <linux/config.h>
15 #ifdef CONFIG_DECSTATION
17 * log2(HZ), change this here if you want another HZ value. This is also
18 * used in dec_time_init. Minimum is 1, Maximum is 15.
20 # define LOG_2_HZ 7
21 # define HZ (1 << LOG_2_HZ)
23 * Ye olde division-by-multiplication trick.
24 * This works only if 100 / HZ <= 1
26 # define QUOTIENT ((1UL << (32 - LOG_2_HZ)) * 100)
27 # define hz_to_std(a) \
28 ({ unsigned int __res; \
29 unsigned long __lo; \
30 __asm__("multu\t%2,%3\n\t" \
31 :"=h" (__res), "=l" (__lo) \
32 :"r" (a),"r" (QUOTIENT)); \
33 (__typeof__(a)) __res;})
35 #else /* Not a DECstation */
37 /* This is the internal value of HZ, that is the rate at which the jiffies
38 counter is increasing. This value is independent from the external value
39 and can be changed in order to suit the hardware and application
40 requirements. */
41 # define HZ 100
42 # define hz_to_std(a) (a)
44 #endif /* Not a DECstation */
46 #else /* defined(__KERNEL__) */
48 /* This is the external value of HZ as seen by user programs. Don't change
49 unless you know what you're doing - changing breaks binary compatibility. */
50 #define HZ 100
52 #endif /* defined(__KERNEL__) */
53 #endif /* defined(HZ) */
55 #define EXEC_PAGESIZE 4096
57 #ifndef NGROUPS
58 #define NGROUPS 32
59 #endif
61 #ifndef NOGROUP
62 #define NOGROUP (-1)
63 #endif
65 #define MAXHOSTNAMELEN 64 /* max length of hostname */
67 #endif /* _ASM_PARAM_H */