Message ID | 20220507094340.33700-1-yilingjin@tencent.com (mailing list archive) |
---|---|
State | New, archived |
Headers | show |
Series | cpu-throttle: reset throttle_thread_scheduled when throttle_percentage is 0 | expand |
diff --git a/softmmu/cpu-throttle.c b/softmmu/cpu-throttle.c index d9bb30a223..7c2fd26072 100644 --- a/softmmu/cpu-throttle.c +++ b/softmmu/cpu-throttle.c @@ -44,6 +44,7 @@ static void cpu_throttle_thread(CPUState *cpu, run_on_cpu_data opaque) int64_t sleeptime_ns, endtime_ns; if (!cpu_throttle_get_percentage()) { + qatomic_set(&cpu->throttle_thread_scheduled, 0); return; }