8 /* Safeguard against user stupidity */
10 #error Do not include <asm/param.h> with __KERNEL__ defined!
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.
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; \
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
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. */
52 #endif /* defined(__KERNEL__) */
53 #endif /* defined(HZ) */
55 #define EXEC_PAGESIZE 4096
65 #define MAXHOSTNAMELEN 64 /* max length of hostname */
68 # define CLOCKS_PER_SEC 100 /* frequency at which times() counts */
71 #endif /* _ASM_PARAM_H */