From 3ef0da48ff064a194406805701d8cdaa136164e3 Mon Sep 17 00:00:00 2001 From: Alexandre Frade Date: Mon, 29 Jan 2018 17:26:15 +0000 Subject: [PATCH] kconfig: add 500Hz timer interrupt kernel config option Signed-off-by: Alexandre Frade --- kernel/Kconfig.hz | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/kernel/Kconfig.hz b/kernel/Kconfig.hz index 38ef6d06888ef..b4a1995149d05 100644 --- a/kernel/Kconfig.hz +++ b/kernel/Kconfig.hz @@ -5,7 +5,7 @@ choice prompt "Timer frequency" - default HZ_250 + default HZ_500 help Allows the configuration of the timer frequency. It is customary to have the timer interrupt run at 1000 Hz but 100 Hz may be more @@ -40,6 +40,13 @@ choice on SMP and NUMA systems and exactly dividing by both PAL and NTSC frame rates for video and multimedia work. + config HZ_500 + bool "500 HZ" + help + 500 Hz is a balanced timer frequency. Provides fast interactivity + on desktops with great smoothness without increasing CPU power + consumption and sacrificing the battery life on laptops. + config HZ_1000 bool "1000 HZ" help @@ -53,6 +60,7 @@ config HZ default 100 if HZ_100 default 250 if HZ_250 default 300 if HZ_300 + default 500 if HZ_500 default 1000 if HZ_1000 config SCHED_HRTICK