Skip to content

Commit

Permalink
uml: add back CONFIG_HZ
Browse files Browse the repository at this point in the history
avoid-overflows-in-kernel-timec.patch makes CONFIG_HZ necessary for a
successful build.  UML lacks a definition, so this patch adds one.  It also
changes the hard-wired definition of HZ to CONFIG_HZ.

Note: this patch is a good idea even in the absence of hpa's time fixes.

Cc: "H. Peter Anvin" <hpa@zytor.com>
Signed-off-by: Jeff Dike <jdike@linux.intel.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
  • Loading branch information
Jeff Dike authored and Linus Torvalds committed Feb 5, 2008
1 parent 438ee67 commit 7281ff9
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
4 changes: 4 additions & 0 deletions arch/um/Kconfig
Original file line number Diff line number Diff line change
Expand Up @@ -68,6 +68,10 @@ config IRQ_RELEASE_METHOD
bool
default y

config HZ
int
default 100

menu "UML-specific options"

config STATIC_LINK
Expand Down
2 changes: 1 addition & 1 deletion include/asm-um/param.h
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
#define MAXHOSTNAMELEN 64 /* max length of hostname */

#ifdef __KERNEL__
#define HZ 100
#define HZ CONFIG_HZ
#define USER_HZ 100 /* .. some user interfaces are in "ticks" */
#define CLOCKS_PER_SEC (USER_HZ) /* frequency at which times() counts */
#endif
Expand Down

0 comments on commit 7281ff9

Please sign in to comment.