git diff kernel/Kconfig.hz include/linux/jiffies.h
diff --git a/include/linux/jiffies.h b/include/linux/jiffies.h
index 5e13f801c902..940ae41be011 100644
--- a/include/linux/jiffies.h
+++ b/include/linux/jiffies.h
@@ -20,7 +20,9 @@
* OSF/1 kernel. The SHIFT_HZ define expresses the same value as the
* nearest power of two in order to avoid hardware multiply operations.
*/
-#if HZ >= 12 && HZ < 24
+#if HZ >= 6 && HZ < 12
+# define SHIFT_HZ 3
+#elif HZ >= 12 && HZ < 24
# define SHIFT_HZ 4
#elif HZ >= 24 && HZ < 48
# define SHIFT_HZ 5
diff --git a/kernel/Kconfig.hz b/kernel/Kconfig.hz
index 38ef6d06888e..109f0e2bfd0c 100644
--- a/kernel/Kconfig.hz
+++ b/kernel/Kconfig.hz
@@ -16,6 +16,13 @@ choice
environment leading to NR_CPUS * HZ number of timer interrupts
per second.
+ config HZ_10
+ bool "10 HZ"
+ help
+ 100 Hz is a typical choice for servers, SMP and NUMA systems
+ with lots of processors that may show reduced performance if
+ too many timer interrupts are occurring.
+
config HZ_100
bool "100 HZ"
@@ -50,6 +57,7 @@ endchoice
config HZ
int
+ default 10 if HZ_10
default 100 if HZ_100
default 250 if HZ_250
default 300 if HZ_300
修改CONFIG_10
最新推荐文章于 2024-07-24 21:34:55 发布