aboutsummaryrefslogtreecommitdiffstats
path: root/arch/sh/Kconfig
diff options
context:
space:
mode:
authorPaul Mundt <lethal@linux-sh.org>2006-11-30 23:23:47 -0500
committerPaul Mundt <lethal@linux-sh.org>2006-12-05 20:45:40 -0500
commitbd156147eb63ae525e0ac67868e41a808f03c532 (patch)
tree8774cf4f3297c94c10583f6331b5b17e0322f0db /arch/sh/Kconfig
parent1d118562c2067a42d0e8f70671a4ce27d7c6ffee (diff)
sh: dyntick infrastructure.
This adds basic NO_IDLE_HZ support to the SH timer API so timers are able to wire it up. Taken from the ARM version, as it fit in to our API with very few changes needed. Signed-off-by: Paul Mundt <lethal@linux-sh.org>
Diffstat (limited to 'arch/sh/Kconfig')
-rw-r--r--arch/sh/Kconfig18
1 files changed, 18 insertions, 0 deletions
diff --git a/arch/sh/Kconfig b/arch/sh/Kconfig
index 48308dc86e33..aa1ebc561b84 100644
--- a/arch/sh/Kconfig
+++ b/arch/sh/Kconfig
@@ -423,6 +423,24 @@ config SH_TIMER_IRQ
423 default "140" if CPU_SUBTYPE_SH7206 423 default "140" if CPU_SUBTYPE_SH7206
424 default "16" 424 default "16"
425 425
426config NO_IDLE_HZ
427 bool "Dynamic tick timer"
428 help
429 Select this option if you want to disable continuous timer ticks
430 and have them programmed to occur as required. This option saves
431 power as the system can remain in idle state for longer.
432
433 By default dynamic tick is disabled during the boot, and can be
434 manually enabled with:
435
436 echo 1 > /sys/devices/system/timer/timer0/dyn_tick
437
438 Alternatively, if you want dynamic tick automatically enabled
439 during boot, pass "dyntick=enable" via the kernel command string.
440
441 Please note that dynamic tick may affect the accuracy of
442 timekeeping on some platforms depending on the implementation.
443
426config SH_PCLK_FREQ 444config SH_PCLK_FREQ
427 int "Peripheral clock frequency (in Hz)" 445 int "Peripheral clock frequency (in Hz)"
428 default "27000000" if CPU_SUBTYPE_SH73180 || CPU_SUBTYPE_SH7343 446 default "27000000" if CPU_SUBTYPE_SH73180 || CPU_SUBTYPE_SH7343