📄 100hz.patch
字号:
diff -Naur linux/arch/mips/Kconfig.debug linux-HZ/arch/mips/Kconfig.debug--- linux/arch/mips/Kconfig.debug 2005-06-24 12:48:24.247516464 -0500+++ linux-HZ/arch/mips/Kconfig.debug 2005-06-24 12:52:55.266315344 -0500@@ -8,6 +8,24 @@ Say Y here if you are compiling the kernel on a different architecture than the one it is intended to run on. +choice + prompt "Internal kernel timer frequency(HZ)"+ help+ Sets the HZ value.++config HZ_1000+ bool "1000Hz"+ help+ Sets HZ to 1000.++config HZ_100+ bool "100Hz"+ help + Sets HZ to 100.++endchoice++ config CMDLINE string "Default kernel command string" default ""diff -Naur linux/include/asm-mips/mach-generic/param.h linux-HZ/include/asm-mips/mach-generic/param.h--- linux/include/asm-mips/mach-generic/param.h 2005-06-24 12:48:33.228151200 -0500+++ linux-HZ/include/asm-mips/mach-generic/param.h 2005-06-24 12:50:57.000000000 -0500@@ -8,6 +8,18 @@ #ifndef __ASM_MACH_GENERIC_PARAM_H #define __ASM_MACH_GENERIC_PARAM_H -#define HZ 1000 /* Internal kernel timer frequency */+#ifndef AUTOCONF_INCLUDED+#include <linux/autoconf.h>+#endif++#ifdef CONFIG_HZ_100+ #define HZ 100 /* Internal kernel timer frequency */+#else+# ifdef CONFIG_HZ_1000+ #define HZ 1000 /* Internal kernel timer frequency */+# else+# error No correct HZ value specified+# endif+#endif #endif /* __ASM_MACH_GENERIC_PARAM_H */
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -