Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > linux.kernel > #1715379

[PATCH 1/6] kselftests: timers: freq-step: Define ADJ_SETOFFSET if device has older kernel headers

From John Stultz <john.stultz@linaro.org>
Newsgroups linux.kernel
Subject [PATCH 1/6] kselftests: timers: freq-step: Define ADJ_SETOFFSET if device has older kernel headers
Date 2017-08-18 21:00 +0200
Message-ID <ufUEW-7yR-23@gated-at.bofh.it> (permalink)
References <ufUEV-7yR-3@gated-at.bofh.it>
Organization linux.* mail to news gateway

Show all headers | View raw


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 <tglx@linutronix.de>
Cc: Ingo Molnar <mingo@kernel.org>
Cc: Miroslav Lichvar <mlichvar@redhat.com>
Cc: Richard Cochran <richardcochran@gmail.com>
Cc: Prarit Bhargava <prarit@redhat.com>
Cc: Stephen Boyd <stephen.boyd@linaro.org>
Cc: Shuah Khan <shuah@kernel.org>
Cc: linux-kselftest@vger.kernel.org
Signed-off-by: John Stultz <john.stultz@linaro.org>
---
 tools/testing/selftests/timers/freq-step.c | 4 ++++
 1 file changed, 4 insertions(+)

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;
-- 
2.7.4

Back to linux.kernel | Previous | Next — Previous in thread | Next in thread | Find similar | Unroll thread


Thread

[GIT PULL][PATCH 0/6] Timekeeping queue for 4.14 John Stultz <john.stultz@linaro.org> - 2017-08-18 21:00 +0200
  [PATCH 5/6] timekeeping: Use proper timekeeper for debug code John Stultz <john.stultz@linaro.org> - 2017-08-18 21:00 +0200
  [PATCH 1/6] kselftests: timers: freq-step: Define ADJ_SETOFFSET if device has older kernel headers John Stultz <john.stultz@linaro.org> - 2017-08-18 21:00 +0200
  [PATCH 4/6] kselftests: timers: set-timer-lat: Add one-shot timer test cases John Stultz <john.stultz@linaro.org> - 2017-08-18 21:00 +0200
  [PATCH 2/6] kselftests: timers: freq-step: Fix build warning John Stultz <john.stultz@linaro.org> - 2017-08-18 21:00 +0200

csiph-web