sh: Always use CONFIG_HZ for HZ.
authorPaul Mundt <lethal@linux-sh.org>
Tue, 18 Dec 2007 00:43:15 +0000 (09:43 +0900)
committerPaul Mundt <lethal@linux-sh.org>
Mon, 28 Jan 2008 04:19:01 +0000 (13:19 +0900)
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>
include/asm-sh/param.h

index 1012296..ae245af 100644 (file)
@@ -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