From patchwork Mon Oct 23 15:21:12 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: "Hunt, David" X-Patchwork-Id: 30728 Return-Path: X-Original-To: patchwork@dpdk.org Delivered-To: patchwork@dpdk.org Received: from [92.243.14.124] (localhost [127.0.0.1]) by dpdk.org (Postfix) with ESMTP id 43B7C1B655; Mon, 23 Oct 2017 17:21:29 +0200 (CEST) Received: from mga03.intel.com (mga03.intel.com [134.134.136.65]) by dpdk.org (Postfix) with ESMTP id 33B201B654 for ; Mon, 23 Oct 2017 17:21:26 +0200 (CEST) Received: from fmsmga006.fm.intel.com ([10.253.24.20]) by orsmga103.jf.intel.com with ESMTP/TLS/DHE-RSA-AES256-GCM-SHA384; 23 Oct 2017 08:21:26 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.43,423,1503385200"; d="scan'208";a="166475255" Received: from silpixa00397898.ir.intel.com (HELO silpixa00397898.ger.corp.intel.com) ([10.237.223.116]) by fmsmga006.fm.intel.com with ESMTP; 23 Oct 2017 08:21:25 -0700 From: David Hunt To: dev@dpdk.org Cc: David Hunt Date: Mon, 23 Oct 2017 16:21:12 +0100 Message-Id: <1508772072-110814-1-git-send-email-david.hunt@intel.com> X-Mailer: git-send-email 2.7.4 Subject: [dpdk-dev] [PATCH] power: fix power example app response time X-BeenThere: dev@dpdk.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: DPDK patches and discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: dev-bounces@dpdk.org Sender: "dev" 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 --- examples/vm_power_manager/channel_monitor.c | 4 ++-- 1 file 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;