]> git.baikalelectronics.ru Git - kernel.git/commit
[PATCH] i386: fix hpet for systems that don't support legacy replacement
authorjohn stultz <johnstul@us.ibm.com>
Sun, 1 May 2005 15:58:50 +0000 (08:58 -0700)
committerLinus Torvalds <torvalds@ppc970.osdl.org>
Sun, 1 May 2005 15:58:50 +0000 (08:58 -0700)
commit86c030914bf942d3f9d45f0cdaeae21f23cac605
tree4b9ebb20ec019daf301eef37fd6c7b75a7ea7de9
parentff77c853956c101c5e832dd0b71fef13226041fa
[PATCH] i386: fix hpet for systems that don't support legacy replacement

Currently the i386 HPET code assumes the entire HPET implementation from
the spec is present.  This breaks on boxes that do not implement the
optional legacy timer replacement functionality portion of the spec.

This patch, which is very similar to my x86-64 patch for the same issue,
fixes the problem allowing i386 systems that cannot use the HPET for the
timer interrupt and RTC to still use the HPET as a time source.  I've
tested this patch on a system systems without HPET, with HPET but without
legacy timer replacement, as well as HPET with legacy timer replacement.

Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
arch/i386/kernel/time.c
arch/i386/kernel/time_hpet.c
arch/i386/kernel/timers/timer_hpet.c
arch/i386/kernel/timers/timer_tsc.c
include/asm-i386/hpet.h