ARM: fix forced-HZ values
authorRussell King <rmk+kernel@arm.linux.org.uk>
Tue, 10 Sep 2013 22:47:55 +0000 (23:47 +0100)
committerRussell King <rmk+kernel@arm.linux.org.uk>
Tue, 10 Sep 2013 22:47:55 +0000 (23:47 +0100)
Olof Johansson reports that the tests against HZ_FIXED seem
non-functional.  Fix this by using '0' as a sentinel for "not
specified" and test against that instead.

Reported-by: Olof Johansson <olof@lixom.net>
Signed-off-by: Russell King <rmk+kernel@arm.linux.org.uk>
arch/arm/Kconfig

index a00f4c1c7d71795dace4130a4f353edccda7ceef..026b1217d3b9a585a1a98946a3b54b4cc645a80f 100644 (file)
@@ -1618,9 +1618,10 @@ config HZ_FIXED
                ARCH_S5PV210 || ARCH_EXYNOS4
        default AT91_TIMER_HZ if ARCH_AT91
        default SHMOBILE_TIMER_HZ if ARCH_SHMOBILE
+       default 0
 
 choice
-       depends on !HZ_FIXED
+       depends on HZ_FIXED = 0
        prompt "Timer frequency"
 
 config HZ_100
@@ -1645,7 +1646,7 @@ endchoice
 
 config HZ
        int
-       default HZ_FIXED if HZ_FIXED
+       default HZ_FIXED if HZ_FIXED != 0
        default 100 if HZ_100
        default 200 if HZ_200
        default 250 if HZ_250