Commit 7bff489a authored by Paul Mundt's avatar Paul Mundt

sh: Always use CONFIG_HZ for HZ.

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: default avatarH. Peter Anvin <hpa@zytor.com>
Signed-off-by: default avatarPaul Mundt <lethal@linux-sh.org>
parent 0095d58b
...@@ -2,11 +2,7 @@ ...@@ -2,11 +2,7 @@
#define __ASM_SH_PARAM_H #define __ASM_SH_PARAM_H
#ifdef __KERNEL__ #ifdef __KERNEL__
# ifdef CONFIG_SH_WDT
# define HZ 1000 /* Needed for high-res WOVF */
# else
# define HZ CONFIG_HZ # define HZ CONFIG_HZ
# endif
# define USER_HZ 100 /* User interfaces are in "ticks" */ # define USER_HZ 100 /* User interfaces are in "ticks" */
# define CLOCKS_PER_SEC (USER_HZ) /* frequency at which times() counts */ # define CLOCKS_PER_SEC (USER_HZ) /* frequency at which times() counts */
#endif #endif
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment