diff options
| author | Thomas Gleixner <[email protected]> | 2017-06-21 09:08:13 +0200 |
|---|---|---|
| committer | Thomas Gleixner <[email protected]> | 2017-06-21 09:08:13 +0200 |
| commit | 17d9d6875ce89c0c98bb54d4d5649efb22986bf3 (patch) | |
| tree | 6029577f3145777289c32255b448bd956b2fe5a5 /tools/testing/selftests/timers/inconsistency-check.c | |
| parent | f0cd9ae5d0df8668e76359a3e0e99856aa9c53b9 (diff) | |
| parent | 767392565a3e618950fe1a5ff1ba11295f6332f4 (diff) | |
Merge branch 'fortglx/4.13/time' of https://git.linaro.org/people/john.stultz/linux into timers/core
Merge time(keeping) updates from John Stultz:
"Just a small set of changes, the biggest changes being the MONOTONIC_RAW
handling cleanup, and a new kselftest from Miroslav. Also a a clear
warning deprecating CONFIG_GENERIC_TIME_VSYSCALL_OLD, which affects ppc
and ia64."
Diffstat (limited to 'tools/testing/selftests/timers/inconsistency-check.c')
| -rw-r--r-- | tools/testing/selftests/timers/inconsistency-check.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/tools/testing/selftests/timers/inconsistency-check.c b/tools/testing/selftests/timers/inconsistency-check.c index caf1bc9257c4..74c60e8759a0 100644 --- a/tools/testing/selftests/timers/inconsistency-check.c +++ b/tools/testing/selftests/timers/inconsistency-check.c @@ -118,7 +118,7 @@ int consistency_test(int clock_type, unsigned long seconds) start_str = ctime(&t); while (seconds == -1 || now - then < seconds) { - inconsistent = 0; + inconsistent = -1; /* Fill list */ for (i = 0; i < CALLS_PER_LOOP; i++) @@ -130,7 +130,7 @@ int consistency_test(int clock_type, unsigned long seconds) inconsistent = i; /* display inconsistency */ - if (inconsistent) { + if (inconsistent >= 0) { unsigned long long delta; printf("\%s\n", start_str); |