aboutsummaryrefslogtreecommitdiffstats
path: root/include
diff options
context:
space:
mode:
authorPaul Mundt <lethal@linux-sh.org>2007-12-17 19:43:15 -0500
committerPaul Mundt <lethal@linux-sh.org>2008-01-27 23:19:01 -0500
commit7bff489a1496d363e9a640c00eb8970da15079dd (patch)
treed8de4f1b1733e5cdc33d6832f549be5548f53014 /include
parent0095d58b4a91b9fb57aeb781909355b232517c64 (diff)
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: H. Peter Anvin <hpa@zytor.com> Signed-off-by: Paul Mundt <lethal@linux-sh.org>
Diffstat (limited to 'include')
-rw-r--r--include/asm-sh/param.h6
1 files changed, 1 insertions, 5 deletions
diff --git a/include/asm-sh/param.h b/include/asm-sh/param.h
index 1012296e07ab..ae245afdfd6a 100644
--- a/include/asm-sh/param.h
+++ b/include/asm-sh/param.h
@@ -2,11 +2,7 @@
2#define __ASM_SH_PARAM_H 2#define __ASM_SH_PARAM_H
3 3
4#ifdef __KERNEL__ 4#ifdef __KERNEL__
5# ifdef CONFIG_SH_WDT 5# define HZ CONFIG_HZ
6# define HZ 1000 /* Needed for high-res WOVF */
7# else
8# define HZ CONFIG_HZ
9# endif
10# define USER_HZ 100 /* User interfaces are in "ticks" */ 6# define USER_HZ 100 /* User interfaces are in "ticks" */
11# define CLOCKS_PER_SEC (USER_HZ) /* frequency at which times() counts */ 7# define CLOCKS_PER_SEC (USER_HZ) /* frequency at which times() counts */
12#endif 8#endif