summaryrefslogtreecommitdiffstats
path: root/include/qemu/throttle.h
diff options
context:
space:
mode:
authorAlberto Garcia <berto@igalia.com>2016-02-18 12:26:54 +0200
committerTimothy Pearson <tpearson@raptorengineering.com>2019-11-29 19:45:30 -0600
commit3628ca4d13e180a33af653b6942ab425166e69a5 (patch)
treed78cb4fff177c35b2f4fe257c919c36487221370 /include/qemu/throttle.h
parent240a3da33698c90b6418f5936383f6b2f7e5d700 (diff)
downloadhqemu-3628ca4d13e180a33af653b6942ab425166e69a5.zip
hqemu-3628ca4d13e180a33af653b6942ab425166e69a5.tar.gz
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 'include/qemu/throttle.h')
-rw-r--r--include/qemu/throttle.h6
1 files changed, 0 insertions, 6 deletions
diff --git a/include/qemu/throttle.h b/include/qemu/throttle.h
index d0c98ed..52c98d9 100644
--- a/include/qemu/throttle.h
+++ b/include/qemu/throttle.h
@@ -84,12 +84,6 @@ void throttle_leak_bucket(LeakyBucket *bkt, int64_t delta);
int64_t throttle_compute_wait(LeakyBucket *bkt);
-/* expose timer computation function for unit tests */
-bool throttle_compute_timer(ThrottleState *ts,
- bool is_write,
- int64_t now,
- int64_t *next_timestamp);
-
/* init/destroy cycle */
void throttle_init(ThrottleState *ts);
OpenPOWER on IntegriCloud