make oldconfig will rebuild these...
[linux-2.4.21-pre4.git] / include / asm-mips / param.h
1 #ifndef _ASM_PARAM_H
2 #define _ASM_PARAM_H
3
4 #ifndef HZ
5
6 #ifdef __KERNEL__
7
8 /* Safeguard against user stupidity  */
9 #ifdef _SYS_PARAM_H
10 #error Do not include <asm/param.h> with __KERNEL__ defined!
11 #endif
12
13 #include <linux/config.h>
14
15 #ifdef CONFIG_DECSTATION
16    /*
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.
19     */
20 #  define LOG_2_HZ 7
21 #  define HZ (1 << LOG_2_HZ)
22    /*
23     * Ye olde division-by-multiplication trick.
24     * This works only if 100 / HZ <= 1
25     */
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;})
34
35 #else /* Not a DECstation  */
36
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)
43
44 #endif /* Not a DECstation */
45
46 #else /* defined(__KERNEL__)  */
47
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
51
52 #endif /* defined(__KERNEL__)  */
53 #endif /* defined(HZ)  */
54
55 #define EXEC_PAGESIZE   4096
56
57 #ifndef NGROUPS
58 #define NGROUPS         32
59 #endif
60
61 #ifndef NOGROUP
62 #define NOGROUP         (-1)
63 #endif
64
65 #define MAXHOSTNAMELEN  64      /* max length of hostname */
66
67 #ifdef __KERNEL__
68 # define CLOCKS_PER_SEC 100     /* frequency at which times() counts */
69 #endif
70
71 #endif /* _ASM_PARAM_H */