• Paul E. McKenney's avatar
    clocksource: Verify HPET and PMTMR when TSC unverified · efc8b329
    Paul E. McKenney authored
    On systems with two or fewer sockets, when the boot CPU has CONSTANT_TSC,
    NONSTOP_TSC, and TSC_ADJUST, clocksource watchdog verification of the
    TSC is disabled.  This works well much of the time, but there is the
    occasional production-level system that meets all of these criteria, but
    which still has a TSC that skews significantly from atomic-clock time.
    This is usually attributed to a firmware or hardware fault.  Yes, the
    various NTP daemons do express their opinions of userspace-to-atomic-clock
    time skew, but they put them in various places, depending on the daemon
    and distro in question.  It would therefore be good for the kernel to
    have some clue that there is a problem.
    
    The old behavior of marking the TSC unstable is a non-starter because a
    great many workloads simply cannot tolerate the overheads and latencies
    of the various non-TSC clocksources.  In addition, NTP-corrected systems
    sometimes can tolerate significant kernel-space time skew as lo...
    efc8b329
time.h 384 Bytes