OpenCores
URL https://opencores.org/ocsvn/or1k/or1k/trunk

Subversion Repositories or1k

[/] [or1k/] [trunk/] [linux/] [linux-2.4/] [include/] [asm-ppc64/] [param.h] - Blame information for rev 1765

Details | Compare with Previous | View Log

Line No. Rev Author Line
1 1275 phoenix
#ifndef _ASM_PPC64_PARAM_H
2
#define _ASM_PPC64_PARAM_H
3
 
4
/*
5
 * This program is free software; you can redistribute it and/or
6
 * modify it under the terms of the GNU General Public License
7
 * as published by the Free Software Foundation; either version
8
 * 2 of the License, or (at your option) any later version.
9
 */
10
 
11
#ifndef HZ
12
#define HZ 100
13
#ifdef __KERNEL__
14
#if HZ == 100
15
/* ppc (like X86) is defined to provide userspace with a world where HZ=100
16
   We have to do this, (x*const)/const2 isnt optimised out because its not
17
   a null operation as it might overflow.. */
18
#define hz_to_std(a) (a)
19
#else
20
#define hz_to_std(a) ((a)*(100/HZ)+((a)*(100%HZ))/HZ)
21
#endif
22
#endif
23
#endif
24
 
25
#define EXEC_PAGESIZE   4096
26
 
27
#ifndef NGROUPS
28
#define NGROUPS         32
29
#endif
30
 
31
#ifndef NOGROUP
32
#define NOGROUP         (-1)
33
#endif
34
 
35
#define MAXHOSTNAMELEN  64      /* max length of hostname */
36
 
37
#ifdef __KERNEL__
38
# define CLOCKS_PER_SEC HZ      /* frequency at which times() counts */
39
#endif
40
 
41
#endif /* _ASM_PPC64_PARAM_H */

powered by: WebSVN 2.1.0

© copyright 1999-2024 OpenCores.org, equivalent to Oliscience, all rights reserved. OpenCores®, registered trademark.