Skip to content

Commit

Permalink
sh: Always use CONFIG_HZ for HZ.
Browse files Browse the repository at this point in the history
Currently the wdt forces HZ=1000 and sidesteps CONFIG_HZ completely. This
is a remnant from when HZ was hardcoded and before CONFIG_HZ was
introduced. Additionally, not all of the timers have this requirement
these days, so it's also an artificial limitation. Just kill it off and
use CONFIG_HZ directly.

Reported-by: H. Peter Anvin <hpa@zytor.com>
Signed-off-by: Paul Mundt <lethal@linux-sh.org>
  • Loading branch information
Paul Mundt committed Jan 28, 2008
1 parent 0095d58 commit 7bff489
Showing 1 changed file with 1 addition and 5 deletions.
6 changes: 1 addition & 5 deletions include/asm-sh/param.h
Original file line number Diff line number Diff line change
Expand Up @@ -2,11 +2,7 @@
#define __ASM_SH_PARAM_H

#ifdef __KERNEL__
# ifdef CONFIG_SH_WDT
# define HZ 1000 /* Needed for high-res WOVF */
# else
# define HZ CONFIG_HZ
# endif
# define HZ CONFIG_HZ
# define USER_HZ 100 /* User interfaces are in "ticks" */
# define CLOCKS_PER_SEC (USER_HZ) /* frequency at which times() counts */
#endif
Expand Down

0 comments on commit 7bff489

Please sign in to comment.