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>
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;
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;