Skip to content

Commit

Permalink
alpha: Force the user-visible HZ to a constant 1024.
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Richard Henderson authored and Matt Turner committed Jul 19, 2013
1 parent 984ac6c commit 46931bf
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 10 deletions.
8 changes: 5 additions & 3 deletions arch/alpha/include/asm/param.h
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,9 @@

#include <uapi/asm/param.h>

#define HZ CONFIG_HZ
#define USER_HZ HZ
# define CLOCKS_PER_SEC HZ /* frequency at which times() counts */
# undef HZ
# define HZ CONFIG_HZ
# define USER_HZ 1024
# define CLOCKS_PER_SEC USER_HZ /* frequency at which times() counts */

#endif /* _ASM_ALPHA_PARAM_H */
7 changes: 0 additions & 7 deletions arch/alpha/include/uapi/asm/param.h
Original file line number Diff line number Diff line change
@@ -1,13 +1,7 @@
#ifndef _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
#endif

#define EXEC_PAGESIZE 8192

Expand All @@ -17,5 +11,4 @@

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


#endif /* _UAPI_ASM_ALPHA_PARAM_H */

0 comments on commit 46931bf

Please sign in to comment.