Home
last modified time | relevance | path

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

/tools/power/cpupower/utils/idle_monitor/
Dcpuidle_sysfs.c25 static unsigned long long timediff; variable
33 cpuidle_cstates[id].name, timediff, *percent, cpu); in cpuidle_get_count_percent()
35 if (timediff == 0) in cpuidle_get_count_percent()
38 *percent = ((100.0 * statediff) / timediff); in cpuidle_get_count_percent()
41 cpuidle_cstates[id].name, timediff, statediff, *percent, cpu); in cpuidle_get_count_percent()
67 timediff = timespec_diff_us(start_time, end_time); in cpuidle_stop()
Damd_fam14h_idle.c87 static unsigned long long timediff; variable
218 if (timediff == 0) in fam14h_get_count_percent()
221 *percent = 100.0 * diff / timediff / 12.5; in fam14h_get_count_percent()
224 timediff, diff * 10 / 125, *percent); in fam14h_get_count_percent()
262 timediff = timespec_diff_us(start_time, end_time); in amd_fam14h_stop()
263 if (timediff / 1000 > OVERFLOW_MS) in amd_fam14h_stop()
264 print_overflow_err((unsigned int)timediff / 1000000, in amd_fam14h_stop()
Dmperf_monitor.c121 unsigned long long timediff; in mperf_get_count_percent() local
138 timediff = timespec_diff_us(time_start, time_end); in mperf_get_count_percent()
139 *percent = 100.0 * mperf_diff / timediff; in mperf_get_count_percent()
141 mperf_cstates[id].name, mperf_diff, timediff); in mperf_get_count_percent()
Dcpupower-monitor.c276 unsigned long long timediff; in fork_it() local
307 timediff = timespec_diff_us(start, end); in fork_it()
310 argv[0], timediff / (1000.0 * 1000), in fork_it()