Lines Matching +full:reset +full:- +full:synchronized
4 * Copyright (c) 2003-2008 Fabrice Bellard
28 #include "qemu/main-loop.h"
30 #include "sysemu/cpu-throttle.h"
32 #include "migration-stats.h"
45 /* Making sure RAMBlock dirty bitmap is synchronized every five seconds */
59 throttle_ratio = pct / (1 - pct); in cpu_throttle_thread()
63 while (sleeptime_ns > 0 && !cpu->stop) { in cpu_throttle_thread()
65 qemu_cond_timedwait_bql(cpu->halt_cond, in cpu_throttle_thread()
72 sleeptime_ns = endtime_ns - qemu_clock_get_ns(QEMU_CLOCK_REALTIME); in cpu_throttle_thread()
74 qatomic_set(&cpu->throttle_thread_scheduled, 0); in cpu_throttle_thread()
87 if (!qatomic_xchg(&cpu->throttle_thread_scheduled, 1)) { in cpu_throttle_timer_tick()
95 CPU_THROTTLE_TIMESLICE_NS / (1 - pct)); in cpu_throttle_timer_tick()
175 * Always reset the dirty sync count cache, in case migration in cpu_throttle_dirty_sync_timer()