]> git.proxmox.com Git - mirror_qemu.git/commit - util/throttle.c
throttle: Use throttle_config_init() to initialize ThrottleConfig
authorAlberto Garcia <berto@igalia.com>
Thu, 18 Feb 2016 10:27:00 +0000 (12:27 +0200)
committerKevin Wolf <kwolf@redhat.com>
Mon, 22 Feb 2016 13:08:05 +0000 (14:08 +0100)
commit1588ab5d0b96301b893d63aa342faad0e37a02ff
treeea9e26c76a57df7e47dcd76d326f85c799f48d52
parentd5851089a8a77d5c23e8d5fffb5b99265009ba62
throttle: Use throttle_config_init() to initialize ThrottleConfig

We can currently initialize ThrottleConfig by zeroing all its fields,
but this will change with the new fields to define the length of the
burst periods.

This patch introduces a new throttle_config_init() function and uses it
to replace all memset() calls that initialize ThrottleConfig directly.

Signed-off-by: Alberto Garcia <berto@igalia.com>
Reviewed-by: Kevin Wolf <kwolf@redhat.com>
Reviewed-by: Stefan Hajnoczi <stefanha@redhat.com>
Signed-off-by: Kevin Wolf <kwolf@redhat.com>
blockdev.c
include/qemu/throttle.h
tests/test-throttle.c
util/throttle.c