Searched refs:timediff (Results 1 – 5 of 5) sorted by relevance
/linux/tools/power/cpupower/utils/idle_monitor/ |
H A D | cpuidle_sysfs.c | 23 static unsigned long long timediff; variable 31 cpuidle_cstates[id].name, timediff, *percent, cpu); in cpuidle_get_count_percent() 33 if (timediff == 0) in cpuidle_get_count_percent() 36 *percent = ((100.0 * statediff) / timediff); in cpuidle_get_count_percent() 39 cpuidle_cstates[id].name, timediff, statediff, *percent, cpu); in cpuidle_get_count_percent() 65 timediff = timespec_diff_us(start_time, end_time); in cpuidle_stop()
|
H A D | amd_fam14h_idle.c | 86 static unsigned long long timediff; variable 217 if (timediff == 0) in fam14h_get_count_percent() 220 *percent = 100.0 * diff / timediff / 12.5; in fam14h_get_count_percent() 223 timediff, diff * 10 / 125, *percent); in fam14h_get_count_percent() 261 timediff = timespec_diff_us(start_time, end_time); in amd_fam14h_stop() 262 if (timediff / 1000 > OVERFLOW_MS) in amd_fam14h_stop() 263 print_overflow_err((unsigned int)timediff / 1000000, in amd_fam14h_stop()
|
H A D | mperf_monitor.c | 160 unsigned long long timediff; in mperf_get_count_percent() local 177 timediff = max_frequency * timespec_diff_us(time_start, time_end); in mperf_get_count_percent() 178 *percent = 100.0 * mperf_diff / timediff; in mperf_get_count_percent() 180 mperf_cstates[id].name, mperf_diff, timediff); in mperf_get_count_percent()
|
H A D | cpupower-monitor.c | 285 unsigned long long timediff; in fork_it() local 316 timediff = timespec_diff_us(start, end); in fork_it() 319 argv[0], timediff / (1000.0 * 1000), in fork_it()
|
/linux/tools/testing/selftests/net/ |
H A D | fin_ack_lat.c | 17 static unsigned long timediff(struct timeval s, struct timeval e) in timediff() function 69 lat = timediff(start, end); in client()
|