From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail-ig0-f171.google.com (mail-ig0-f171.google.com [209.85.213.171]) by dpdk.org (Postfix) with ESMTP id 998DE9AF8 for ; Wed, 25 Feb 2015 05:10:12 +0100 (CET) Received: by mail-ig0-f171.google.com with SMTP id h15so32473023igd.4 for ; Tue, 24 Feb 2015 20:10:12 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=from:to:cc:subject:date:message-id:in-reply-to:references; bh=DY1IV2bd2HmRSS59mCKAvieIja8se2PXg360me6xjA8=; b=QFWfl9EBYyOes2zud/MlfaLLs9hr2PfQHIixHUyJnmgM9e4dDqeW2dWqZqEpE1F0rY 3W3c+lyih1GCDDMvIEo/ZeY9Y53q7SFpcuqWBeyW0wNu55hppWcY2V/r5EZelKKJ+DfS 2d3OQgoFwpOhDRRP6QIU8N1i4Zu1ZQ3pzSNVOjjdLOSsNPPkWnv4nTk5y6jlqMzGPcCX Hg4X5mZhpRhvs3Z5wmmNvWBDEkjq3w0AQW006zbzdIMUIEfgiog5PCNbfgi6C+TMGVE8 Nb12fYJAoEqO6U8jj00jJS3DMOwEOxStipooU7LXXBBkuVvHVD3uSL1UMoSKUee2q/W4 Nz3Q== X-Received: by 10.50.80.12 with SMTP id n12mr24482027igx.29.1424837412164; Tue, 24 Feb 2015 20:10:12 -0800 (PST) Received: from localhost.localdomain (adsl-065-013-043-223.sip.mia.bellsouth.net. [65.13.43.223]) by mx.google.com with ESMTPSA id m38sm25067554ioi.39.2015.02.24.20.10.10 (version=TLSv1.2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Tue, 24 Feb 2015 20:10:11 -0800 (PST) From: Robert Sanford To: dev@dpdk.org Date: Tue, 24 Feb 2015 23:09:47 -0500 Message-Id: <1424837389-56276-2-git-send-email-rsanford2@gmail.com> X-Mailer: git-send-email 1.7.1 In-Reply-To: <1422996127-64370-1-git-send-email-rsanford2@gmail.com> References: <1422996127-64370-1-git-send-email-rsanford2@gmail.com> Subject: [dpdk-dev] [PATCH v2 1/3] timer: pause in rte_timer_reset_sync X-BeenThere: dev@dpdk.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: patches and discussions about DPDK List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 25 Feb 2015 04:10:13 -0000 In rte_timer_reset_sync(), insert rte_pause() into loop that waits for rte_timer_reset() to succeed. Signed-off-by: Robert Sanford --- lib/librte_timer/rte_timer.c | 3 ++- 1 files changed, 2 insertions(+), 1 deletions(-) diff --git a/lib/librte_timer/rte_timer.c b/lib/librte_timer/rte_timer.c index 269a992..dae76cc 100644 --- a/lib/librte_timer/rte_timer.c +++ b/lib/librte_timer/rte_timer.c @@ -437,7 +437,8 @@ rte_timer_reset_sync(struct rte_timer *tim, uint64_t ticks, rte_timer_cb_t fct, void *arg) { while (rte_timer_reset(tim, ticks, type, tim_lcore, - fct, arg) != 0); + fct, arg) != 0) + rte_pause(); } /* Stop the timer associated with the timer handle tim */ -- 1.7.1