diff -purN -X /home/mbligh/.diff.exclude 200-early_printk/arch/i386/Kconfig 210-config_hz/arch/i386/Kconfig --- 200-early_printk/arch/i386/Kconfig 2004-02-28 11:17:17.000000000 -0800 +++ 210-config_hz/arch/i386/Kconfig 2004-02-28 11:17:25.000000000 -0800 @@ -867,6 +867,25 @@ config EFI anything about EFI). However, even with this option, the resultant kernel should continue to boot on existing non-EFI platforms. +choice + help + This is unrelated to your processor's speed. This variable alters + how often the system is asked to generate timer interrupts. A larger + value can lead to a more responsive system, but also causes extra + overhead from the increased number of context switches. + + If in doubt, leave it at the default of 1000. + + prompt "Kernel HZ" + default 1000HZ + +config 100HZ + bool "100 Hz" + +config 1000HZ + bool "1000 Hz" +endchoice + config HAVE_DEC_LOCK bool depends on (SMP || PREEMPT) && X86_CMPXCHG diff -purN -X /home/mbligh/.diff.exclude 200-early_printk/include/asm-i386/param.h 210-config_hz/include/asm-i386/param.h --- 200-early_printk/include/asm-i386/param.h 2002-12-09 18:45:45.000000000 -0800 +++ 210-config_hz/include/asm-i386/param.h 2004-02-28 11:17:25.000000000 -0800 @@ -2,11 +2,19 @@ #define _ASMi386_PARAM_H #ifdef __KERNEL__ -# define HZ 1000 /* Internal kernel timer frequency */ -# define USER_HZ 100 /* .. some user interfaces are in "ticks" */ -# define CLOCKS_PER_SEC (USER_HZ) /* like times() */ +#include + +#ifdef CONFIG_1000HZ +# define HZ 1000 /* Internal kernel timer frequency */ +#else +# define HZ 100 #endif +#define USER_HZ 100 /* .. some user interfaces are in "ticks" */ +#define CLOCKS_PER_SEC (USER_HZ) /* like times() */ + +#endif /* __KERNEL__ */ + #ifndef HZ #define HZ 100 #endif diff -purN -X /home/mbligh/.diff.exclude 200-early_printk/include/linux/timex.h 210-config_hz/include/linux/timex.h --- 200-early_printk/include/linux/timex.h 2003-10-27 10:41:15.000000000 -0800 +++ 210-config_hz/include/linux/timex.h 2004-02-28 11:17:25.000000000 -0800 @@ -78,7 +78,7 @@ #elif HZ >= 768 && HZ < 1536 # define SHIFT_HZ 10 #else -# error You lose. +# error Please use a HZ value which is between 12 and 1536 #endif /*