修改CONFIG_10

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

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值