Home
last modified time | relevance | path

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

/openbmc/qemu/system/
H A Dcpu-throttle.c44 int64_t sleeptime_ns, endtime_ns; in cpu_throttle_thread() local
53 sleeptime_ns = (int64_t)(throttle_ratio * CPU_THROTTLE_TIMESLICE_NS + 1); in cpu_throttle_thread()
54 endtime_ns = qemu_clock_get_ns(QEMU_CLOCK_REALTIME) + sleeptime_ns; in cpu_throttle_thread()
55 while (sleeptime_ns > 0 && !cpu->stop) { in cpu_throttle_thread()
56 if (sleeptime_ns > SCALE_MS) { in cpu_throttle_thread()
58 sleeptime_ns / SCALE_MS); in cpu_throttle_thread()
61 g_usleep(sleeptime_ns / SCALE_US); in cpu_throttle_thread()
64 sleeptime_ns = endtime_ns - qemu_clock_get_ns(QEMU_CLOCK_REALTIME); in cpu_throttle_thread()