summaryrefslogtreecommitdiff
path: root/util
diff options
context:
space:
mode:
authorAlberto Garcia <berto@igalia.com>2016-02-18 12:26:54 +0200
committerKevin Wolf <kwolf@redhat.com>2016-02-22 14:08:04 +0100
commit3c9242f5ae8ca37bb5775747e34999fe8cdfee2f (patch)
treed7d4e954b56de0fe1e0e6e131add90bed9c552d4 /util
parent9bd9c7f5b51447b073524a7ff280c3f8eefbd38a (diff)
downloadqemu-3c9242f5ae8ca37bb5775747e34999fe8cdfee2f.tar.gz
qemu-3c9242f5ae8ca37bb5775747e34999fe8cdfee2f.tar.bz2
qemu-3c9242f5ae8ca37bb5775747e34999fe8cdfee2f.zip
throttle: Make throttle_compute_timer() static
This function is only used internally in throttle.c 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>
Diffstat (limited to 'util')
-rw-r--r--util/throttle.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/util/throttle.c b/util/throttle.c
index 2f9b23d925..c21043a8d5 100644
--- a/util/throttle.c
+++ b/util/throttle.c
@@ -137,10 +137,10 @@ static int64_t throttle_compute_wait_for(ThrottleState *ts,
* @next_timestamp: the resulting timer
* @ret: true if a timer must be set
*/
-bool throttle_compute_timer(ThrottleState *ts,
- bool is_write,
- int64_t now,
- int64_t *next_timestamp)
+static bool throttle_compute_timer(ThrottleState *ts,
+ bool is_write,
+ int64_t now,
+ int64_t *next_timestamp)
{
int64_t wait;