Searched refs:measured_times (Results 1 - 1 of 1) sorted by relevance

/linux-4.4.14/init/
H A Dcalibrate.c42 unsigned long measured_times[MAX_DIRECT_CALIBRATION_RETRIES]; calibrate_delay_direct() local
43 int max = -1; /* index of measured_times with max/min values or not set */ calibrate_delay_direct()
106 measured_times[i] = timer_rate_max; calibrate_delay_direct()
107 if (max < 0 || timer_rate_max > measured_times[max]) calibrate_delay_direct()
109 if (min < 0 || timer_rate_max < measured_times[min]) calibrate_delay_direct()
112 measured_times[i] = 0; calibrate_delay_direct()
129 if ((measured_times[max] - measured_times[min]) < maxdiff) calibrate_delay_direct()
135 if ((measured_times[max] - estimate) < calibrate_delay_direct()
136 (estimate - measured_times[min])) { calibrate_delay_direct()
139 min, measured_times[min]); calibrate_delay_direct()
140 measured_times[min] = 0; calibrate_delay_direct()
145 max, measured_times[max]); calibrate_delay_direct()
146 measured_times[max] = 0; calibrate_delay_direct()
151 if (measured_times[i] == 0) calibrate_delay_direct()
154 good_timer_sum += measured_times[i]; calibrate_delay_direct()
155 if (measured_times[i] < measured_times[min]) calibrate_delay_direct()
157 if (measured_times[i] > measured_times[max]) calibrate_delay_direct()

Completed in 35 milliseconds