summaryrefslogtreecommitdiff
path: root/release/src/linux/linux/include/asm-ppc64/param.h
blob: c1ab9fb9f4a4c0597b7f86d253989b240dad5438 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
#ifndef _ASM_PPC64_PARAM_H
#define _ASM_PPC64_PARAM_H

/*
 * This program is free software; you can redistribute it and/or
 * modify it under the terms of the GNU General Public License
 * as published by the Free Software Foundation; either version
 * 2 of the License, or (at your option) any later version.
 */

#ifndef HZ
#define HZ 100
#ifdef __KERNEL__
#if HZ == 100
/* ppc (like X86) is defined to provide userspace with a world where HZ=100
   We have to do this, (x*const)/const2 isnt optimised out because its not
   a null operation as it might overflow.. */
#define hz_to_std(a) (a)
#else
#define hz_to_std(a) ((a)*(100/HZ)+((a)*(100%HZ))/HZ)
#endif
#endif
#endif

#define EXEC_PAGESIZE	4096

#ifndef NGROUPS
#define NGROUPS		32
#endif

#ifndef NOGROUP
#define NOGROUP		(-1)
#endif

#define MAXHOSTNAMELEN	64	/* max length of hostname */

#ifdef __KERNEL__
# define CLOCKS_PER_SEC	HZ	/* frequency at which times() counts */
#endif

#endif /* _ASM_PPC64_PARAM_H */