[PATCH][2.6-test4][3/6]Support for HPET based timer

From: Pallipadi, Venkatesh
Date: Thu Aug 28 2003 - 18:47:57 EST


3/6 - hpet3.patch - Miscallaneous makefile and config changes



diff -purN linux-2.6.0-test4/arch/i386/Kconfig linux-2.6.0-test4-hpet/arch/i386/Kconfig
--- linux-2.6.0-test4/arch/i386/Kconfig 2003-08-22 16:52:28.000000000 -0700
+++ linux-2.6.0-test4-hpet/arch/i386/Kconfig 2003-08-28 12:18:15.000000000 -0700
@@ -408,6 +408,17 @@ config HUGETLB_PAGE

Otherwise, say N.

+config HPET_TIMER
+ bool "HPET Timer Support"
+ help
+ This enables HPET timer usage for kernel internal timer.
+ HPET is the next generation timer replacing legacy 8254s.
+ You can safely choose Y here. However, HPET will be
+ activated, only if platform and the BIOS supports the feature.
+ Otherwise, 8254 will be used for timing services.
+
+ Choose N, to continue using legacy 8254 timer.
+
config SMP
bool "Symmetric multi-processing support"
---help---
diff -purN linux-2.6.0-test4/arch/i386/kernel/Makefile linux-2.6.0-test4-hpet/arch/i386/kernel/Makefile
--- linux-2.6.0-test4/arch/i386/kernel/Makefile 2003-08-22 16:52:57.000000000 -0700
+++ linux-2.6.0-test4-hpet/arch/i386/kernel/Makefile 2003-08-28 12:18:15.000000000 -0700
@@ -31,6 +31,7 @@ obj-$(CONFIG_EDD) += edd.o
obj-$(CONFIG_MODULES) += module.o
obj-y += sysenter.o vsyscall.o
obj-$(CONFIG_ACPI_SRAT) += srat.o
+obj-$(CONFIG_HPET_TIMER) += time_hpet.o

EXTRA_AFLAGS := -traditional

diff -purN linux-2.6.0-test4/arch/i386/kernel/timers/Makefile linux-2.6.0-test4-hpet/arch/i386/kernel/timers/Makefile
--- linux-2.6.0-test4/arch/i386/kernel/timers/Makefile 2003-08-22 16:50:23.000000000 -0700
+++ linux-2.6.0-test4-hpet/arch/i386/kernel/timers/Makefile 2003-08-28 12:18:15.000000000 -0700
@@ -5,3 +5,4 @@
obj-y := timer.o timer_none.o timer_tsc.o timer_pit.o

obj-$(CONFIG_X86_CYCLONE_TIMER) += timer_cyclone.o
+obj-$(CONFIG_HPET_TIMER) += timer_hpet.o
diff -purN linux-2.6.0-test4/Documentation/kernel-parameters.txt linux-2.6.0-test4-hpet/Documentation/kernel-parameters.txt
--- linux-2.6.0-test4/Documentation/kernel-parameters.txt 2003-08-22 17:03:21.000000000 -0700
+++ linux-2.6.0-test4-hpet/Documentation/kernel-parameters.txt 2003-08-28 12:18:15.000000000 -0700
@@ -215,7 +215,10 @@ running once the system is up.
when calculating gettimeofday(). If specicified timesource
is not avalible, it defaults to PIT.
Format: { pit | tsc | cyclone | ... }
-
+
+ hpet= [IA-32,HPET] option to disable HPET and use PIT.
+ Format: disable
+
cm206= [HW,CD]
Format: { auto | [<io>,][<irq>] }



Attachment: hpet03.ZIP
Description: hpet03.ZIP