From: John Stultz Date: Mon, 14 Aug 2017 20:46:32 +0000 (-0700) Subject: kselftests: timers: freq-step: Define ADJ_SETOFFSET if device has older kernel headers X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=0aeab46ed8bde9e5850b2558b99307633093d0a2;p=GitHub%2FLineageOS%2Fandroid_kernel_motorola_exynos9610.git kselftests: timers: freq-step: Define ADJ_SETOFFSET if device has older kernel headers 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 --- diff --git a/tools/testing/selftests/timers/freq-step.c b/tools/testing/selftests/timers/freq-step.c index e8c61830825a..934a308ee686 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;