• D
    Fix event test timer checks on kernels with HZ=100 · 32f021f2
    Daniel P. Berrange 提交于
    On kernels with HZ=100, the resolution of sleeps in poll() is
    quite bad. Doing a precise check on the expiry time vs the
    current time will thus often thing the timer has not expired
    even though we're within 10ms of the expected expiry time. This
    then causes another pointless sleep in poll() for <10ms. Timers
    do not need to have such precise expiration, so we treat a timer
    as expired if it is within 20ms of the expected expiry time. This
    also fixes the eventtest.c test suite on kernels with HZ=100
    
    * daemon/event.c: Add 20ms fuzz when checking for timer expiry
    32f021f2
event.c 20.8 KB