mirror of
https://github.com/edk2-porting/linux-next.git
synced 2024-12-28 07:04:00 +08:00
3d7f1dc195
Rearrange the definition of HZ in asm-generic/param.h so that the user-specific is declared before the kernel-specific one. We then explicitly #undef the userspace HZ value and replace it with the kernel HZ value. This allows the userspace params to be excised into a separate header as part of the UAPI header split. Signed-off-by: David Howells <dhowells@redhat.com> Acked-by: Arnd Bergmann <arnd@arndb.de>
26 lines
510 B
C
26 lines
510 B
C
#ifndef __ASM_GENERIC_PARAM_H
|
|
#define __ASM_GENERIC_PARAM_H
|
|
|
|
#ifndef HZ
|
|
#define HZ 100
|
|
#endif
|
|
|
|
#ifndef EXEC_PAGESIZE
|
|
#define EXEC_PAGESIZE 4096
|
|
#endif
|
|
|
|
#ifndef NOGROUP
|
|
#define NOGROUP (-1)
|
|
#endif
|
|
|
|
#define MAXHOSTNAMELEN 64 /* max length of hostname */
|
|
|
|
#ifdef __KERNEL__
|
|
# undef HZ
|
|
# define HZ CONFIG_HZ /* Internal kernel timer frequency */
|
|
# define USER_HZ 100 /* some user interfaces are */
|
|
# define CLOCKS_PER_SEC (USER_HZ) /* in "ticks" like times() */
|
|
#endif
|
|
|
|
#endif /* __ASM_GENERIC_PARAM_H */
|