Home
last modified time | relevance | path

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

/Linux-v5.4/tools/testing/selftests/powerpc/benchmarks/
Dnull_syscall.c133 unsigned long long elapsed_ns, elapsed_tb; in main() local
145 elapsed_ns = (tv_now.tv_sec - tv_start.tv_sec) * 1000000000ULL + in main()
149 printf("%10.2f ns %10.2f cycles\n", (float)elapsed_ns / NR_LOOPS, in main()
/Linux-v5.4/drivers/base/power/
Ddomain.c415 s64 elapsed_ns; in _genpd_power_on() local
429 elapsed_ns = ktime_to_ns(ktime_sub(ktime_get(), time_start)); in _genpd_power_on()
430 if (elapsed_ns <= genpd->states[state_idx].power_on_latency_ns) in _genpd_power_on()
433 genpd->states[state_idx].power_on_latency_ns = elapsed_ns; in _genpd_power_on()
436 genpd->name, "on", elapsed_ns); in _genpd_power_on()
445 s64 elapsed_ns; in _genpd_power_off() local
459 elapsed_ns = ktime_to_ns(ktime_sub(ktime_get(), time_start)); in _genpd_power_off()
460 if (elapsed_ns <= genpd->states[state_idx].power_off_latency_ns) in _genpd_power_off()
463 genpd->states[state_idx].power_off_latency_ns = elapsed_ns; in _genpd_power_off()
466 genpd->name, "off", elapsed_ns); in _genpd_power_off()
[all …]