mirror of
https://github.com/AuxXxilium/linux_dsm_epyc7002.git
synced 2024-11-25 07:50:51 +07:00
88ced03149
include/asm-ppc/ had #ifdef __KERNEL__ in all header files that are not meant for use by user space, include/asm-powerpc does not have this yet. This patch gets us a lot closer there. There are a few cases where I was not sure, so I left them out. I have verified that no CONFIG_* symbols are used outside of __KERNEL__ any more and that there are no obvious compile errors when including any of the headers in user space libraries. Signed-off-by: Arnd Bergmann <arnd@arndb.de> Signed-off-by: Paul Mackerras <paulus@samba.org>
23 lines
492 B
C
23 lines
492 B
C
#ifndef _ASM_POWERPC_PARAM_H
|
|
#define _ASM_POWERPC_PARAM_H
|
|
|
|
#ifdef __KERNEL__
|
|
#define HZ CONFIG_HZ /* internal kernel timer frequency */
|
|
#define USER_HZ 100 /* for user interfaces in "ticks" */
|
|
#define CLOCKS_PER_SEC (USER_HZ) /* frequency at which times() counts */
|
|
#endif /* __KERNEL__ */
|
|
|
|
#ifndef HZ
|
|
#define HZ 100
|
|
#endif
|
|
|
|
#define EXEC_PAGESIZE 4096
|
|
|
|
#ifndef NOGROUP
|
|
#define NOGROUP (-1)
|
|
#endif
|
|
|
|
#define MAXHOSTNAMELEN 64 /* max length of hostname */
|
|
|
|
#endif /* _ASM_POWERPC_PARAM_H */
|