]> git.karo-electronics.de Git - karo-tx-linux.git/commit
kselftests: timers: Fix inconsistency-check to not ignore first timestamp
authorMiroslav Lichvar <mlichvar@redhat.com>
Tue, 13 Jun 2017 10:57:07 +0000 (12:57 +0200)
committerJohn Stultz <john.stultz@linaro.org>
Wed, 21 Jun 2017 05:14:11 +0000 (22:14 -0700)
commit7a5de5512296fd2ab7a497e4a576196b1f046e78
treeba57a67cb65c5b37faed46e663ccf308254302d3
parent369adf04d80a7e179b9ea6d74cc01c233f142f47
kselftests: timers: Fix inconsistency-check to not ignore first timestamp

When the first timestamp in the list of clock readings was later than
the second timestamp and all other timestamps were in order, the
inconsistency was not reported because the index of the out-of-order
timestamp was equal to the default value.

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>
Signed-off-by: Miroslav Lichvar <mlichvar@redhat.com>
Signed-off-by: John Stultz <john.stultz@linaro.org>
tools/testing/selftests/timers/inconsistency-check.c