From patchwork Fri Aug 18 18:50:57 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: John Stultz X-Patchwork-Id: 110424 Delivered-To: patches@linaro.org Received: by 10.140.95.78 with SMTP id h72csp1287382qge; Fri, 18 Aug 2017 11:51:09 -0700 (PDT) X-Received: by 10.84.137.129 with SMTP id 1mr10647524pln.251.1503082269516; Fri, 18 Aug 2017 11:51:09 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1503082269; cv=none; d=google.com; s=arc-20160816; b=NwzspAoYf1cyTB7teBI9e4dsg9bIFrtl0ADd7B40RH0LMNxmZQHHnC/+KdQNY2ko4m pyu3qWZSVd0FT/f1KDNTTilRfxhAgMF8oovVdtJwnLvcNl/9W+r2hbDbNWqaKtD+oaSO mtPVBn7AzC+Tb+Sn6rfwMo/7xWE1sqVzHtkiV8YueWpFaH8z+SSgElfoU2GQ55577MV0 gFPa2oRBsxMIUaHu1UJdpKW4ilDXvb8vV1/jJu4dl6kBViz5LihqRaQuNP3GJtfCHBDu YE/cf3BHgWj175InIkTnUwSQT11omfasV8V47jbNziJTHdfbNKmwfmL1oQTc40UsW2IR STrw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=references:in-reply-to:message-id:date:subject:cc:to:from :dkim-signature:arc-authentication-results; bh=4JQsD0MbHudMQUKAbKtRPZ7c4+VDOeqtDyHFZfM28A0=; b=D0apAZpigZf9HKe8pYqclPR361iRQQAx0xgFSL1tlGsKjuvtkPgpQIYgg4GIT75g0T em+Wgg4i0kp25clep2NQg1MN7oOL8EyUM7BvZ+7U/Sis1IlF1cI0U5/OEP46VMXFnKmc SJmVMsN79ALMYOnr+34Klfv14V/C/OAWfvb0xZ0cOkErWUaRCw+CiKZAcSSm3LbsYok9 qagWj+Brk9d1C5XHaoJllAFvAXjER/G1cChjvmMMGg8B4T0xePDdM0iaPwirUekEAozl 173jRamxOY0SScnwi7KFlOh7DkTEzfMBMwLE5c6lJGujz2GZFMcTIGhVMYhE3ldVeCJA OwpA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=h0aAvmbg; spf=pass (google.com: domain of john.stultz@linaro.org designates 2607:f8b0:400e:c05::233 as permitted sender) smtp.mailfrom=john.stultz@linaro.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Return-Path: Received: from mail-pg0-x233.google.com (mail-pg0-x233.google.com. [2607:f8b0:400e:c05::233]) by mx.google.com with ESMTPS id e5si3993813pfg.282.2017.08.18.11.51.09 for (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Fri, 18 Aug 2017 11:51:09 -0700 (PDT) Received-SPF: pass (google.com: domain of john.stultz@linaro.org designates 2607:f8b0:400e:c05::233 as permitted sender) client-ip=2607:f8b0:400e:c05::233; Authentication-Results: mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=h0aAvmbg; spf=pass (google.com: domain of john.stultz@linaro.org designates 2607:f8b0:400e:c05::233 as permitted sender) smtp.mailfrom=john.stultz@linaro.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: by mail-pg0-x233.google.com with SMTP id t80so41911611pgb.5 for ; Fri, 18 Aug 2017 11:51:09 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=from:to:cc:subject:date:message-id:in-reply-to:references; bh=4JQsD0MbHudMQUKAbKtRPZ7c4+VDOeqtDyHFZfM28A0=; b=h0aAvmbg8sDwuOs8B0S+c+rxO3a1oOSpVFNcPrKc80V+skeKHNz1koWVLMtDV056v9 xPTjT2xm/NbqCOIQO/TgJoNCQm+IwXvoGNW4zvdg2JQ+74alpjtgu7Sp2SuQrVL3SIVu JpNluVKQq6Tk3TQefdW+MpUJvHnuWb8cMI+zw= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references; bh=4JQsD0MbHudMQUKAbKtRPZ7c4+VDOeqtDyHFZfM28A0=; b=cJp6fqk8TVB3+BMPxy0h1r83rOcdTAaE5qwHKA6bkppBwIZKtQZ1JADiLM0AN0ysdO 6o/mLn1uTt8BGrgHywhn+Ds9+hYkm2y6BpVeLbqZUbfm5QVzu+52BEH9tcKB3z03EKRM CCIsKFETJ3YgIaAVxhMLwZuxTJMIzYwCpANogF2aKQRWhZREPuYhJVeCh6UzhXyufJ1H wVHUDFR9AZQ6UEeUGR7LB7NgT+LdjfPt/1lPXHOoJVGSj8aeEyErRwqq/0Wx4TOegdWM Df7fKCSHBRVHT+pNOSZhVn5QL1ZkK2S+FifWtXF2Tc+ONWiZBWtkJvLQp8BXBaZa8KVr /6IQ== X-Gm-Message-State: AHYfb5jhAH4bNAE+EFTylKMf94XFtpMQnTtnKEzwJGEJQB82mSKxiXJJ sBiv3QLZesdrf9W071c= X-Received: by 10.99.174.70 with SMTP id e6mr5856690pgp.246.1503082269240; Fri, 18 Aug 2017 11:51:09 -0700 (PDT) Return-Path: Received: from localhost.localdomain ([2601:1c2:1002:83f0:4e72:b9ff:fe99:466a]) by smtp.gmail.com with ESMTPSA id l132sm12518790pfc.150.2017.08.18.11.51.07 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Fri, 18 Aug 2017 11:51:08 -0700 (PDT) From: John Stultz To: lkml Cc: John Stultz , Thomas Gleixner , Ingo Molnar , Miroslav Lichvar , Richard Cochran , Prarit Bhargava , Stephen Boyd , Shuah Khan , linux-kselftest@vger.kernel.org Subject: [PATCH 1/6] kselftests: timers: freq-step: Define ADJ_SETOFFSET if device has older kernel headers Date: Fri, 18 Aug 2017 11:50:57 -0700 Message-Id: <1503082262-29450-2-git-send-email-john.stultz@linaro.org> X-Mailer: git-send-email 2.7.4 In-Reply-To: <1503082262-29450-1-git-send-email-john.stultz@linaro.org> References: <1503082262-29450-1-git-send-email-john.stultz@linaro.org> On some systems, the kernel headers haven't been updated to include ADJ_SETOFFSET, so define it in the test if needed. Cc: Thomas Gleixner Cc: Ingo Molnar Cc: Miroslav Lichvar Cc: Richard Cochran Cc: Prarit Bhargava Cc: Stephen Boyd Cc: Shuah Khan Cc: linux-kselftest@vger.kernel.org Signed-off-by: John Stultz --- tools/testing/selftests/timers/freq-step.c | 4 ++++ 1 file changed, 4 insertions(+) -- 2.7.4 diff --git a/tools/testing/selftests/timers/freq-step.c b/tools/testing/selftests/timers/freq-step.c index e8c6183..934a308 100644 --- a/tools/testing/selftests/timers/freq-step.c +++ b/tools/testing/selftests/timers/freq-step.c @@ -33,6 +33,10 @@ #define MAX_FREQ_ERROR 10e-6 #define MAX_STDDEV 1000e-9 +#ifndef ADJ_SETOFFSET + #define ADJ_SETOFFSET 0x0100 +#endif + struct sample { double offset; double time;