summaryrefslogtreecommitdiff
path: root/examples/vm_power_manager
diff options
context:
space:
mode:
authorDavid Hunt <david.hunt@intel.com>2017-10-23 16:21:12 +0100
committerThomas Monjalon <thomas@monjalon.net>2017-10-24 23:48:27 +0200
commite4f66da3473f5c3bc77d9f55221a3e30e57f9bb4 (patch)
tree3e75907444b77d16669659dd48a8cc1742585d39 /examples/vm_power_manager
parentf73b38e9245d77d4d6b5861f8d203c0bf5120b15 (diff)
downloaddpdk-e4f66da3473f5c3bc77d9f55221a3e30e57f9bb4.zip
dpdk-e4f66da3473f5c3bc77d9f55221a3e30e57f9bb4.tar.gz
dpdk-e4f66da3473f5c3bc77d9f55221a3e30e57f9bb4.tar.xz
examples/vm_power_manager: fix response time
A delay in the loop waiting for the virtio-serial commands in the vm_power_manager app was causing a lag in the response time. This was set to 1 second, and has now been changed to 1ms. Fixes: f14791a8126e ("examples/vm_power_mgr: add policy to channels") Signed-off-by: David Hunt <david.hunt@intel.com>
Diffstat (limited to 'examples/vm_power_manager')
-rw-r--r--examples/vm_power_manager/channel_monitor.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/examples/vm_power_manager/channel_monitor.c b/examples/vm_power_manager/channel_monitor.c
index f8e3491..37e71ed 100644
--- a/examples/vm_power_manager/channel_monitor.c
+++ b/examples/vm_power_manager/channel_monitor.c
@@ -64,7 +64,7 @@
uint64_t vsi_pkt_count_prev[384];
uint64_t rdtsc_prev[384];
-double time_period_s = 1;
+double time_period_ms = 1;
static volatile unsigned run_loop = 1;
static int global_event_fd;
static unsigned int policy_is_set;
@@ -542,7 +542,7 @@ run_channel_monitor(void)
process_request(&pkt, chan_info);
}
}
- rte_delay_us(time_period_s*1000000);
+ rte_delay_us(time_period_ms*1000);
if (policy_is_set) {
int j;