From patchwork Tue Jul 28 15:23:07 2015 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Ivan Khoronzhuk X-Patchwork-Id: 51604 Return-Path: X-Original-To: linaro@patches.linaro.org Delivered-To: linaro@patches.linaro.org Received: from mail-lb0-f200.google.com (mail-lb0-f200.google.com [209.85.217.200]) by patches.linaro.org (Postfix) with ESMTPS id 8D0BF214B7 for ; Tue, 28 Jul 2015 15:23:29 +0000 (UTC) Received: by lbvb1 with SMTP id b1sf39075517lbv.3 for ; Tue, 28 Jul 2015 08:23:28 -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:subject:precedence:list-id:list-unsubscribe:list-archive :list-post:list-help:list-subscribe:mime-version:content-type :content-transfer-encoding:errors-to:sender:x-original-sender :x-original-authentication-results:mailing-list; bh=ZNILRuQQ1JsHy34pIh0CFDG4JfUyOAO8/u6C8tFPOa0=; b=B+bO10yaUINI5KpDqgR4qBXL0Rh5QiqVOo7ycyeAGBJPXQ4BtgjRnX4sY3M8m45sCJ j11C+lCC1wsa6VXJBZGG/4ia4qhLLVTvwUn3ksr564Fq1iYVkCkJmncXAO/8p+45QBbz lxuXbmrpNInDG1s6wU2vw/DX9SSx42byeQEf9LOKGW0pWQNe93TURRbhbHzcmNnPlrhD T8H0PuEgTsl3rXNqsdenmicjP4RiQJYPyPySrm3nCzDmcmawgjnBPAHxWKAe7Lm5OU1j 6GzCahrXcdvObrOIEOQKrip3dCbNhUf0h0gX61ymcyicZgi5sE6fa9LfCR6p6u8eJC12 KzeA== X-Gm-Message-State: ALoCoQkxyK9IvhlNuaBX3k1xo6DrogbhaCeIswBohfmAzM7U9FQJGaULSBbkf52EZ8ou9LyBOULi X-Received: by 10.112.173.230 with SMTP id bn6mr14348729lbc.15.1438097008256; Tue, 28 Jul 2015 08:23:28 -0700 (PDT) X-BeenThere: patchwork-forward@linaro.org Received: by 10.153.8.171 with SMTP id dl11ls693485lad.28.gmail; Tue, 28 Jul 2015 08:23:28 -0700 (PDT) X-Received: by 10.112.199.133 with SMTP id jk5mr34217164lbc.32.1438097008105; Tue, 28 Jul 2015 08:23:28 -0700 (PDT) Received: from mail-la0-f43.google.com (mail-la0-f43.google.com. [209.85.215.43]) by mx.google.com with ESMTPS id dx6si18633018lbc.64.2015.07.28.08.23.28 for (version=TLSv1.2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Tue, 28 Jul 2015 08:23:28 -0700 (PDT) Received-SPF: pass (google.com: domain of patch+caf_=patchwork-forward=linaro.org@linaro.org designates 209.85.215.43 as permitted sender) client-ip=209.85.215.43; Received: by lagw2 with SMTP id w2so70823179lag.3 for ; Tue, 28 Jul 2015 08:23:27 -0700 (PDT) X-Received: by 10.112.133.72 with SMTP id pa8mr33228559lbb.117.1438097007642; Tue, 28 Jul 2015 08:23:27 -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.112.7.198 with SMTP id l6csp2205118lba; Tue, 28 Jul 2015 08:23:26 -0700 (PDT) X-Received: by 10.170.222.137 with SMTP id o131mr37076261ykf.27.1438097006232; Tue, 28 Jul 2015 08:23:26 -0700 (PDT) Received: from lists.linaro.org (lists.linaro.org. [54.225.227.206]) by mx.google.com with ESMTP id 79si15655329ykj.41.2015.07.28.08.23.25; Tue, 28 Jul 2015 08:23:26 -0700 (PDT) Received-SPF: pass (google.com: domain of lng-odp-bounces@lists.linaro.org designates 54.225.227.206 as permitted sender) client-ip=54.225.227.206; Received: by lists.linaro.org (Postfix, from userid 109) id D5E3461D62; Tue, 28 Jul 2015 15:23:24 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on ip-10-142-244-252.ec2.internal X-Spam-Level: X-Spam-Status: No, score=-2.6 required=5.0 tests=BAYES_00, RCVD_IN_DNSWL_LOW, RCVD_IN_MSPIKE_H3, RCVD_IN_MSPIKE_WL, URIBL_BLOCKED autolearn=disabled version=3.4.0 Received: from ip-10-142-244-252.ec2.internal (localhost [127.0.0.1]) by lists.linaro.org (Postfix) with ESMTP id 3337A61D45; Tue, 28 Jul 2015 15:23:20 +0000 (UTC) X-Original-To: lng-odp@lists.linaro.org Delivered-To: lng-odp@lists.linaro.org Received: by lists.linaro.org (Postfix, from userid 109) id EC81B61D4B; Tue, 28 Jul 2015 15:23:17 +0000 (UTC) Received: from mail-wi0-f180.google.com (mail-wi0-f180.google.com [209.85.212.180]) by lists.linaro.org (Postfix) with ESMTPS id AF3B961D08 for ; Tue, 28 Jul 2015 15:23:16 +0000 (UTC) Received: by wicmv11 with SMTP id mv11so184225368wic.0 for ; Tue, 28 Jul 2015 08:23:15 -0700 (PDT) X-Received: by 10.194.158.34 with SMTP id wr2mr38423812wjb.23.1438096995739; Tue, 28 Jul 2015 08:23:15 -0700 (PDT) Received: from khorivan.synapse.com ([195.238.92.128]) by smtp.gmail.com with ESMTPSA id pd7sm33765238wjb.27.2015.07.28.08.23.14 (version=TLSv1.2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Tue, 28 Jul 2015 08:23:15 -0700 (PDT) From: Ivan Khoronzhuk To: lng-odp@lists.linaro.org Date: Tue, 28 Jul 2015 18:23:07 +0300 Message-Id: <1438096987-17783-1-git-send-email-ivan.khoronzhuk@linaro.org> X-Mailer: git-send-email 1.9.1 X-Topics: patch Subject: [lng-odp] [Patch] validation: time: increase TOLERANCE range X-BeenThere: lng-odp@lists.linaro.org X-Mailman-Version: 2.1.16 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: , List-Help: , List-Subscribe: , MIME-Version: 1.0 Errors-To: lng-odp-bounces@lists.linaro.org Sender: "lng-odp" X-Removed-Original-Auth: Dkim didn't pass. X-Original-Sender: ivan.khoronzhuk@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.215.43 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 Current test supposes that timer counter resolution is very close to 1ns. But that's not always true. The resoulution can be 8ns for instance, it's not always close to CPU frequency. Signed-off-by: Ivan Khoronzhuk --- test/validation/time/time.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/test/validation/time/time.c b/test/validation/time/time.c index 0aac599..d23bc2e 100644 --- a/test/validation/time/time.c +++ b/test/validation/time/time.c @@ -8,7 +8,7 @@ #include "odp_cunit_common.h" #include "time.h" -#define TOLERANCE 1 +#define TOLERANCE 10 #define BUSY_LOOP_CNT 100 /* check that a cycles difference gives a reasonable result */