Skip to content

Commit

Permalink
ARM: fix forced-HZ values
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Russell King committed Sep 10, 2013
1 parent 9319206 commit 47d8468
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions arch/arm/Kconfig
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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
Expand Down

0 comments on commit 47d8468

Please sign in to comment.