Lines Matching refs:drift
524 * @before: Time before Count was saved, lower bound of drift calculation.
526 * @min_drift: Minimum amount of drift permitted before correction.
529 * Restores the timer from a particular @count, accounting for drift. This can
541 * Returns: Amount of correction to count_bias due to drift.
549 int drift, ret = 0;
556 * Detect significantly negative drift, where count is lower than
557 * expected. Some negative drift is expected when hardware counter is
559 * time to jump forwards a little, within reason. If the drift is too
562 drift = count - before_count;
563 if (drift < min_drift) {
565 vcpu->arch.count_bias += drift;
566 ret = drift;
575 * Detect positive drift, where count is higher than expected, and
578 drift = count - now_count;
579 if (drift > 0) {
581 vcpu->arch.count_bias += drift;
582 ret = drift;