From patchwork Fri Jul 25 22:20:45 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: 34325 Return-Path: X-Original-To: linaro@patches.linaro.org Delivered-To: linaro@patches.linaro.org Received: from mail-oa0-f70.google.com (mail-oa0-f70.google.com [209.85.219.70]) by ip-10-151-82-157.ec2.internal (Postfix) with ESMTPS id 0D44D235AB for ; Fri, 25 Jul 2014 22:22:31 +0000 (UTC) Received: by mail-oa0-f70.google.com with SMTP id eb12sf29907380oac.5 for ; Fri, 25 Jul 2014 15:22:31 -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:delivered-to:from:to:date :message-id:in-reply-to:references:cc:subject:precedence:list-id :list-unsubscribe:list-archive:list-post:list-help:list-subscribe :mime-version:sender:errors-to:x-original-sender :x-original-authentication-results:mailing-list:content-type :content-transfer-encoding; bh=prYGEh1+Ly4RZsJsx6dekz3uaKTYa12O+p3SyPQgmNE=; b=Hg4AmPo7jVglyybbpyTyfzJ2E3uoDxVVbE1AlVs0yPrxnjVn9U5h0xX+mrSY9c8T94 ncmGfP3KOkFF8Ptfx61OKlmGe63a2MZiOpFM3JiLXjTNqsTvNiorLktbb3V1NUQ4ianS +UeCbcIoFVUE30ACzP4xDX8FC6Ot96iaVqE4j9zM+x/8mHBFYg7kzA34mTkHwOqgUTov f3X/RCINStwLfNB2ZDKAU1BIqmjHcfBMCDiniC4yegPJqwpru4gqpJNDBRc0dFjkFjjC c+rZgzkF0EdzcLk6paLEQRCJ+8+QQyWR0t/siEE/jn4T+HbQklUkG/r2xXYe/92SJJ9B n0Hw== X-Gm-Message-State: ALoCoQmGUJLZrFNhENXSjjaQ1dnUZLMd/hxiK9OwcgwQtQnfdn8XGSQboRrXX3BOU2Aaj/fQhI3x X-Received: by 10.182.28.5 with SMTP id x5mr9758652obg.44.1406326951302; Fri, 25 Jul 2014 15:22:31 -0700 (PDT) X-BeenThere: patchwork-forward@linaro.org Received: by 10.140.102.18 with SMTP id v18ls792084qge.51.gmail; Fri, 25 Jul 2014 15:22:31 -0700 (PDT) X-Received: by 10.220.252.198 with SMTP id mx6mr24344201vcb.15.1406326951044; Fri, 25 Jul 2014 15:22:31 -0700 (PDT) Received: from mail-vc0-f177.google.com (mail-vc0-f177.google.com [209.85.220.177]) by mx.google.com with ESMTPS id yw1si8462096vdb.44.2014.07.25.15.22.30 for (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Fri, 25 Jul 2014 15:22:31 -0700 (PDT) Received-SPF: pass (google.com: domain of patch+caf_=patchwork-forward=linaro.org@linaro.org designates 209.85.220.177 as permitted sender) client-ip=209.85.220.177; Received: by mail-vc0-f177.google.com with SMTP id hy4so8241773vcb.8 for ; Fri, 25 Jul 2014 15:22:30 -0700 (PDT) X-Received: by 10.52.138.209 with SMTP id qs17mr4572887vdb.80.1406326950928; Fri, 25 Jul 2014 15:22:30 -0700 (PDT) X-Forwarded-To: patchwork-forward@linaro.org X-Forwarded-For: patch@linaro.org patchwork-forward@linaro.org Delivered-To: patch@linaro.org Received: by 10.221.37.5 with SMTP id tc5csp70167vcb; Fri, 25 Jul 2014 15:22:30 -0700 (PDT) X-Received: by 10.70.90.7 with SMTP id bs7mr21564740pdb.141.1406326950021; Fri, 25 Jul 2014 15:22:30 -0700 (PDT) Received: from mail.openembedded.org (mail.openembedded.org. [140.211.169.62]) by mx.google.com with ESMTP id ot2si10553223pab.34.2014.07.25.15.22.29 for ; Fri, 25 Jul 2014 15:22:30 -0700 (PDT) Received-SPF: none (google.com: openembedded-core-bounces@lists.openembedded.org does not designate permitted sender hosts) client-ip=140.211.169.62; Received: from mail.openembedded.org (localhost [127.0.0.1]) by mail.openembedded.org (Postfix) with ESMTP id 8622070808; Fri, 25 Jul 2014 22:22:24 +0000 (UTC) X-Original-To: openembedded-core@lists.openembedded.org Delivered-To: openembedded-core@lists.openembedded.org Received: from mail-oa0-f51.google.com (mail-oa0-f51.google.com [209.85.219.51]) by mail.openembedded.org (Postfix) with ESMTP id 975C7706C7 for ; Fri, 25 Jul 2014 22:21:07 +0000 (UTC) Received: by mail-oa0-f51.google.com with SMTP id o6so6309299oag.38 for ; Fri, 25 Jul 2014 15:21:08 -0700 (PDT) X-Received: by 10.60.52.115 with SMTP id s19mr26920111oeo.21.1406326868353; Fri, 25 Jul 2014 15:21:08 -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 q3sm40881371oei.3.2014.07.25.15.21.07 for (version=TLSv1.1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Fri, 25 Jul 2014 15:21:07 -0700 (PDT) From: "Gary S. Robertson" To: openembedded-core@lists.openembedded.org Date: Fri, 25 Jul 2014 17:20:45 -0500 Message-Id: <1406326845-17506-4-git-send-email-gary.robertson@linaro.org> X-Mailer: git-send-email 1.7.9.5 In-Reply-To: <1406326845-17506-1-git-send-email-gary.robertson@linaro.org> References: <1406326845-17506-1-git-send-email-gary.robertson@linaro.org> Cc: mike.holmes@linaro.org Subject: [OE-core] [PATCH 3/3] LTP: prio-wake- eliminate deprecated usleep calls X-BeenThere: openembedded-core@lists.openembedded.org X-Mailman-Version: 2.1.12 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: , List-Help: , List-Subscribe: , MIME-Version: 1.0 Sender: openembedded-core-bounces@lists.openembedded.org Errors-To: openembedded-core-bounces@lists.openembedded.org 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.177 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" Minor cleanup on realtime test prio-wake. Replaced deprecated usleep calls with calls to rt_nanosleep, which has no potentially adverse interactions with signals. Signed-off-by: Gary S. Robertson --- ...io-wake-eliminate-deprecated-usleep-calls.patch | 33 ++++++++++++++++++++ meta/recipes-extended/ltp/ltp_20140422.bb | 1 + 2 files changed, 34 insertions(+) create mode 100644 meta/recipes-extended/ltp/ltp/0001-prio-wake-eliminate-deprecated-usleep-calls.patch diff --git a/meta/recipes-extended/ltp/ltp/0001-prio-wake-eliminate-deprecated-usleep-calls.patch b/meta/recipes-extended/ltp/ltp/0001-prio-wake-eliminate-deprecated-usleep-calls.patch new file mode 100644 index 0000000..4a43703 --- /dev/null +++ b/meta/recipes-extended/ltp/ltp/0001-prio-wake-eliminate-deprecated-usleep-calls.patch @@ -0,0 +1,33 @@ +From 38283c837a56d64f3d23b57e082956916fe085b2 Mon Sep 17 00:00:00 2001 +From: "Gary S. Robertson" +Date: Fri, 25 Jul 2014 09:50:35 -0500 +Subject: [PATCH] prio-wake: eliminate deprecated usleep calls + +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; + +-- +1.7.9.5 + diff --git a/meta/recipes-extended/ltp/ltp_20140422.bb b/meta/recipes-extended/ltp/ltp_20140422.bb index f86a195..77c79f5 100644 --- a/meta/recipes-extended/ltp/ltp_20140422.bb +++ b/meta/recipes-extended/ltp/ltp_20140422.bb @@ -28,6 +28,7 @@ SRC_URI = "git://github.com/linux-test-project/ltp.git \ file://automake-foreign.patch \ file://0001-Allow-mutex-initialization-without-PI-configured.patch \ file://0001-pthread_cond_many-fix-uninitialized-return-in-option.patch \ + file://0001-prio-wake-eliminate-deprecated-usleep-calls.patch \ " S = "${WORKDIR}/git"