Lines Matching refs:drift
523 * @before: Time before Count was saved, lower bound of drift calculation.
525 * @min_drift: Minimum amount of drift permitted before correction.
528 * Restores the timer from a particular @count, accounting for drift. This can
540 * Returns: Amount of correction to count_bias due to drift.
548 int drift, ret = 0;
555 * Detect significantly negative drift, where count is lower than
556 * expected. Some negative drift is expected when hardware counter is
558 * time to jump forwards a little, within reason. If the drift is too
561 drift = count - before_count;
562 if (drift < min_drift) {
564 vcpu->arch.count_bias += drift;
565 ret = drift;
574 * Detect positive drift, where count is higher than expected, and
577 drift = count - now_count;
578 if (drift > 0) {
580 vcpu->arch.count_bias += drift;
581 ret = drift;