• john stultz's avatar
    [PATCH] i386: fix hpet for systems that don't support legacy replacement · 35492df5
    john stultz authored
    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: default avatarAndrew Morton <akpm@osdl.org>
    Signed-off-by: default avatarLinus Torvalds <torvalds@osdl.org>
    35492df5
timer_hpet.c 5.36 KB