Skip to contentSkip to conversation

TIME_SLOP vs. timer_slop

DISCUSSION Jan Beulich 2 participants 2 messages Feb 10, 2010

lore
Share & tools
lore
#0 lore raw

Keir,

is there a reason why schedule.c and timer.c don't both use the latter, command line controllable value?

Also, aren't the comment and code in vcpu_periodic_timer_work() out of sync with the actual implementation in timer.c in that a timer will never expire early (with timer_slop only being used to set an upper bound on the expiry range)?

Thanks, Jan

#1 lore raw
Quoted 7 lines · Jan Beulich

is there a reason why schedule.c and timer.c don't both use the latter, command line controllable value?

Also, aren't the comment and code in vcpu_periodic_timer_work() out of sync with the actual implementation in timer.c in that a timer will never expire early (with timer_slop only being used to set an upper bound on the expiry range)?

Yes, true. Thanks for that; it's now fixed as c/s 20921.

-- Keir