Home
last modified time | relevance | path

Searched refs:observed_rate (Results 1 – 1 of 1) sorted by relevance

/xnu-12377.41.6/osfmk/kern/
H A Dremote_time.c400 double observed_rate, rate_from_base, new_rate; in bt_calibration_thread() local
401observed_rate = mach_bridge_compute_rate(curr_local_ts, curr_remote_ts, prev_local_ts, prev_remote… in bt_calibration_thread()
403 if ((observed_rate < MIN_OBSERVED_RATE) || (observed_rate > MAX_OBSERVED_RATE)) { in bt_calibration_thread()
404 KDBG(MACHDBG_CODE(DBG_MACH_CLOCK, MACH_BRIDGE_OBSV_RATE), *(uint64_t *)((void *)&observed_rate)); in bt_calibration_thread()
412 cumulative_rate = cumulative_rate + (observed_rate - cumulative_rate) / initial_sample_count; in bt_calibration_thread()
417 …cumulative_rate = cumulative_rate + CUMULATIVE_RATE_DECAY_CONSTANT * (observed_rate - cumulative_r… in bt_calibration_thread()