Searched refs:timediff (Results 1 – 6 of 6) sorted by relevance
/linux-3.4.99/tools/power/cpupower/utils/idle_monitor/ |
D | cpuidle_sysfs.c | 25 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()
|
D | amd_fam14h_idle.c | 87 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()
|
D | mperf_monitor.c | 121 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()
|
D | cpupower-monitor.c | 276 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()
|
/linux-3.4.99/drivers/staging/media/lirc/ |
D | lirc_igorplugusb.c | 321 int code, timediff; in igorplugusb_remote_poll() local 332 timediff = now.tv_sec - ir->last_time.tv_sec; in igorplugusb_remote_poll() 333 if (timediff + 1 > PULSE_MASK / 1000000) in igorplugusb_remote_poll() 334 timediff = PULSE_MASK; in igorplugusb_remote_poll() 336 timediff *= 1000000; in igorplugusb_remote_poll() 337 timediff += now.tv_usec - ir->last_time.tv_usec; in igorplugusb_remote_poll() 343 code = timediff; in igorplugusb_remote_poll()
|
/linux-3.4.99/drivers/net/hamradio/ |
D | baycom_ser_fdx.c | 233 int timediff; in ser12_rx() local 238 timediff = 1000000 + tv->tv_usec - bc->modem.ser12.pll_time; in ser12_rx() 239 while (timediff >= 500000) in ser12_rx() 240 timediff -= 1000000; in ser12_rx() 241 while (timediff >= bdus2) { in ser12_rx() 242 timediff -= bc->baud_us; in ser12_rx() 267 if (timediff > 0) in ser12_rx() 272 if (abs(timediff) > bdus4) in ser12_rx() 277 bc->debug_vals.cur_pllcorr = timediff; in ser12_rx()
|