From patchwork Mon Jul 28 22:05:02 2014 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: gary.robertson@linaro.org X-Patchwork-Id: 34444 Return-Path: X-Original-To: linaro@patches.linaro.org Delivered-To: linaro@patches.linaro.org Received: from mail-vc0-f197.google.com (mail-vc0-f197.google.com [209.85.220.197]) by ip-10-151-82-157.ec2.internal (Postfix) with ESMTPS id 3BDAF202A1 for ; Mon, 28 Jul 2014 22:35:38 +0000 (UTC) Received: by mail-vc0-f197.google.com with SMTP id ij19sf24741884vcb.0 for ; Mon, 28 Jul 2014 15:35:38 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:delivered-to:from:to:date:message-id:cc:subject :precedence:list-id:list-unsubscribe:list-archive:list-post :list-help:list-subscribe:mime-version:errors-to:x-original-sender :x-original-authentication-results:mailing-list:content-type :content-transfer-encoding; bh=/cuTC+ysIf//R8+JHhrY7iVFV6aHMvjw91FaSXlhJuI=; b=Nx1FEUIhvVRb7ho+VutviAKY7i0ZxMdOhAK1f9yweuVE5SqR+ir1Ewq1oZYsGIzPvq dYf5WDHM6+s/pRfySdGd8toX0Pf6XP2rYwW6DA8nSqffbMvGmZTwUXpA/z9kNu73N54a R4IebXW6TudmU/Ae0TUZQ4rJb+kHXH+9vtyGGndAqbXgQdN96yBjChUg+70IwWJmugIv 79JiZyk9nXcVibVlToZZkVB/CPMFWEEIAqNqYjr5xN8jrS10t2YATeUlK1T8UNfBq4Ra YFYgDZYLN9up5fkyW+4GVojGN8TdLNjq1Db3SK4p5pIZatsDtVK0G5F/5p8e4cKYSyIQ d5Ig== X-Gm-Message-State: ALoCoQm3MBEcWqZUuS1FUP64eRhrzlHdIJmgmN0DvWNJnrfUGc8DDhNySQ/9WfW5Vv82+0Two9V9 X-Received: by 10.236.78.70 with SMTP id f46mr15530767yhe.24.1406586937986; Mon, 28 Jul 2014 15:35:37 -0700 (PDT) X-BeenThere: patchwork-forward@linaro.org Received: by 10.140.37.6 with SMTP id q6ls2300646qgq.49.gmail; Mon, 28 Jul 2014 15:35:37 -0700 (PDT) X-Received: by 10.52.25.228 with SMTP id f4mr332267vdg.62.1406586937892; Mon, 28 Jul 2014 15:35:37 -0700 (PDT) Received: from mail-vc0-f170.google.com (mail-vc0-f170.google.com [209.85.220.170]) by mx.google.com with ESMTPS id mx8si13467762vec.34.2014.07.28.15.35.37 for (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Mon, 28 Jul 2014 15:35:37 -0700 (PDT) Received-SPF: pass (google.com: domain of patch+caf_=patchwork-forward=linaro.org@linaro.org designates 209.85.220.170 as permitted sender) client-ip=209.85.220.170; Received: by mail-vc0-f170.google.com with SMTP id lf12so12554605vcb.1 for ; Mon, 28 Jul 2014 15:35:37 -0700 (PDT) X-Received: by 10.52.248.146 with SMTP id ym18mr392372vdc.8.1406586937777; Mon, 28 Jul 2014 15:35:37 -0700 (PDT) X-Forwarded-To: patchwork-forward@linaro.org X-Forwarded-For: patch@linaro.org patchwork-forward@linaro.org Delivered-To: patches@linaro.org Received: by 10.221.37.5 with SMTP id tc5csp200865vcb; Mon, 28 Jul 2014 15:35:37 -0700 (PDT) X-Received: by 10.42.63.15 with SMTP id a15mr263674ici.80.1406586936604; Mon, 28 Jul 2014 15:35:36 -0700 (PDT) Received: from lists.sourceforge.net (lists.sourceforge.net. [216.34.181.88]) by mx.google.com with ESMTPS id fu3si44335640icb.49.2014.07.28.15.35.36 for (version=TLSv1 cipher=RC4-SHA bits=128/128); Mon, 28 Jul 2014 15:35:36 -0700 (PDT) Received-SPF: pass (google.com: domain of ltp-list-bounces@lists.sourceforge.net designates 216.34.181.88 as permitted sender) client-ip=216.34.181.88; Received: from localhost ([127.0.0.1] helo=sfs-ml-2.v29.ch3.sourceforge.com) by sfs-ml-2.v29.ch3.sourceforge.com with esmtp (Exim 4.76) (envelope-from ) id 1XBtVx-0003tv-JK; Mon, 28 Jul 2014 22:35:29 +0000 Received: from sog-mx-1.v43.ch3.sourceforge.com ([172.29.43.191] helo=mx.sourceforge.net) by sfs-ml-2.v29.ch3.sourceforge.com with esmtp (Exim 4.76) (envelope-from ) id 1XBtVw-0003tq-ML for ltp-list@lists.sourceforge.net; Mon, 28 Jul 2014 22:35:28 +0000 Received-SPF: pass (sog-mx-1.v43.ch3.sourceforge.com: domain of linaro.org designates 209.85.218.43 as permitted sender) client-ip=209.85.218.43; envelope-from=gary.robertson@linaro.org; helo=mail-oi0-f43.google.com; Received: from mail-oi0-f43.google.com ([209.85.218.43]) by sog-mx-1.v43.ch3.sourceforge.com with esmtps (TLSv1:RC4-SHA:128) (Exim 4.76) id 1XBtVv-0008WV-Ua for ltp-list@lists.sourceforge.net; Mon, 28 Jul 2014 22:35:28 +0000 Received: by mail-oi0-f43.google.com with SMTP id u20so6719696oif.2 for ; Mon, 28 Jul 2014 15:35:22 -0700 (PDT) X-Received: by 10.60.58.36 with SMTP id n4mr21177240oeq.73.1406585113751; Mon, 28 Jul 2014 15:05:13 -0700 (PDT) Received: from honkintosh.cybertech.lan (65-120-133-114.dia.static.qwest.net. [65.120.133.114]) by mx.google.com with ESMTPSA id g7sm79654886oek.14.2014.07.28.15.05.13 for (version=TLSv1.1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Mon, 28 Jul 2014 15:05:13 -0700 (PDT) From: "Gary S. Robertson" To: ltp-list@lists.sourceforge.net Date: Mon, 28 Jul 2014 17:05:02 -0500 Message-Id: <1406585102-31700-1-git-send-email-gary.robertson@linaro.org> X-Mailer: git-send-email 1.7.9.5 X-Spam-Score: -1.5 (-) X-Spam-Report: Spam Filtering performed by mx.sourceforge.net. See http://spamassassin.org/tag/ for more details. -1.5 SPF_CHECK_PASS SPF reports sender host as permitted sender for sender-domain -0.0 SPF_PASS SPF: sender matches SPF record X-Headers-End: 1XBtVv-0008WV-Ua Cc: mike.holmes@linaro.org Subject: [LTP] [PATCH] prio-wake: eliminate deprecated usleep calls X-BeenThere: ltp-list@lists.sourceforge.net X-Mailman-Version: 2.1.9 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: , List-Help: , List-Subscribe: , MIME-Version: 1.0 Errors-To: ltp-list-bounces@lists.sourceforge.net X-Removed-Original-Auth: Dkim didn't pass. X-Original-Sender: gary.robertson@linaro.org X-Original-Authentication-Results: mx.google.com; spf=pass (google.com: domain of patch+caf_=patchwork-forward=linaro.org@linaro.org designates 209.85.220.170 as permitted sender) smtp.mail=patch+caf_=patchwork-forward=linaro.org@linaro.org Mailing-list: list patchwork-forward@linaro.org; contact patchwork-forward+owners@linaro.org X-Google-Group-Id: 836684582541 From: "Gary S. Robertson" Replaced deprecated usleep calls with calls to rt_nanosleep, which has no potentially adverse interactions with signals. Signed-off-by: Gary S. Robertson --- testcases/realtime/func/prio-wake/prio-wake.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/testcases/realtime/func/prio-wake/prio-wake.c b/testcases/realtime/func/prio-wake/prio-wake.c index 18c0405..f34ae30 100644 --- a/testcases/realtime/func/prio-wake/prio-wake.c +++ b/testcases/realtime/func/prio-wake/prio-wake.c @@ -108,10 +108,10 @@ void *master_thread(void *arg) /* make sure children are started */ while (running_threads < rt_threads) - usleep(1000); + rt_nanosleep(1000000); /* give the worker threads a chance to get to sleep in the kernel * in the unlocked broadcast case. */ - usleep(1000); + rt_nanosleep(1000000); start = rt_gettime() - beginrun;