alpha: Force the user-visible HZ to a constant 1024.
This kernel/user split was done long ago for other architectures. Signed-off-by: Matt Turner <mattst88@gmail.com> Signed-off-by: Richard Henderson <rth@twiddle.net>
This commit is contained in:
parent
984ac6c0c7
commit
46931bf67c
|
@ -3,7 +3,9 @@
|
||||||
|
|
||||||
#include <uapi/asm/param.h>
|
#include <uapi/asm/param.h>
|
||||||
|
|
||||||
#define HZ CONFIG_HZ
|
# undef HZ
|
||||||
#define USER_HZ HZ
|
# define HZ CONFIG_HZ
|
||||||
# define CLOCKS_PER_SEC HZ /* frequency at which times() counts */
|
# define USER_HZ 1024
|
||||||
|
# define CLOCKS_PER_SEC USER_HZ /* frequency at which times() counts */
|
||||||
|
|
||||||
#endif /* _ASM_ALPHA_PARAM_H */
|
#endif /* _ASM_ALPHA_PARAM_H */
|
||||||
|
|
|
@ -1,13 +1,7 @@
|
||||||
#ifndef _UAPI_ASM_ALPHA_PARAM_H
|
#ifndef _UAPI_ASM_ALPHA_PARAM_H
|
||||||
#define _UAPI_ASM_ALPHA_PARAM_H
|
#define _UAPI_ASM_ALPHA_PARAM_H
|
||||||
|
|
||||||
/* ??? Gross. I don't want to parameterize this, and supposedly the
|
|
||||||
hardware ignores reprogramming. We also need userland buy-in to the
|
|
||||||
change in HZ, since this is visible in the wait4 resources etc. */
|
|
||||||
|
|
||||||
#ifndef __KERNEL__
|
|
||||||
#define HZ 1024
|
#define HZ 1024
|
||||||
#endif
|
|
||||||
|
|
||||||
#define EXEC_PAGESIZE 8192
|
#define EXEC_PAGESIZE 8192
|
||||||
|
|
||||||
|
@ -17,5 +11,4 @@
|
||||||
|
|
||||||
#define MAXHOSTNAMELEN 64 /* max length of hostname */
|
#define MAXHOSTNAMELEN 64 /* max length of hostname */
|
||||||
|
|
||||||
|
|
||||||
#endif /* _UAPI_ASM_ALPHA_PARAM_H */
|
#endif /* _UAPI_ASM_ALPHA_PARAM_H */
|
||||||
|
|
Loading…
Reference in New Issue