summaryrefslogtreecommitdiffstats
path: root/include/exec
diff options
context:
space:
mode:
authorAlberto Garcia2017-08-24 15:24:46 +0200
committerStefan Hajnoczi2017-08-29 17:54:45 +0200
commit2a8be39ebad013e506e31b069ddcce8993a957bf (patch)
tree5dbbe83bfd8762165713e2a8cd88de68e7ce7fb1 /include/exec
parentthrottle: Make throttle_is_valid() a bit less verbose (diff)
downloadqemu-2a8be39ebad013e506e31b069ddcce8993a957bf.tar.gz
qemu-2a8be39ebad013e506e31b069ddcce8993a957bf.tar.xz
qemu-2a8be39ebad013e506e31b069ddcce8993a957bf.zip
throttle: Remove throttle_fix_bucket() / throttle_unfix_bucket()
The throttling code can change internally the value of bkt->max if it hasn't been set by the user. The problem with this is that if we want to retrieve the original value we have to undo this change first. This is ugly and unnecessary: this patch removes the throttle_fix_bucket() and throttle_unfix_bucket() functions completely and moves the logic to throttle_compute_wait(). Signed-off-by: Alberto Garcia <berto@igalia.com> Reviewed-by: Manos Pitsidianakis <el13635@mail.ntua.gr> Message-id: 5b0b9e1ac6eb208d709eddc7b09e7669a523bff3.1503580370.git.berto@igalia.com Signed-off-by: Stefan Hajnoczi <stefanha@redhat.com>
Diffstat (limited to 'include/exec')
0 files changed, 0 insertions, 0 deletions