]> www.infradead.org Git - users/jedix/linux-maple.git/commit
selftests: timers: Remove local NSEC_PER_SEC and USEC_PER_SEC defines
authorShuah Khan <skhan@linuxfoundation.org>
Tue, 24 Sep 2024 00:30:36 +0000 (18:30 -0600)
committerShuah Khan <skhan@linuxfoundation.org>
Mon, 14 Oct 2024 22:15:12 +0000 (16:15 -0600)
commit80fa614e2fbcf11069f0995e1601fb2e5702e2f4
tree0a9b17dd003936401e0752fbe7f7159c32579cfe
parent8e929cb546ee42c9a61d24fae60605e9e3192354
selftests: timers: Remove local NSEC_PER_SEC and USEC_PER_SEC defines

Remove local NSEC_PER_SEC and USEC_PER_SEC defines. Pick them up from
include/vdso/time64.h. This requires -I $(top_srcdir) to the timers
Makefile to include the include/vdso/time64.h.

posix_timers test names the defines NSECS_PER_SEC and USECS_PER_SEC.
Change posix_timers test references to the defines to match the
defines in the header file.

Signed-off-by: Shuah Khan <skhan@linuxfoundation.org>
Acked-by: John Stultz <jstultz@google.com>
Acked-by: Thomas Gleixner <tglx@linutronix.de>
Signed-off-by: Shuah Khan <skhan@linuxfoundation.org>
13 files changed:
tools/testing/selftests/timers/Makefile
tools/testing/selftests/timers/adjtick.c
tools/testing/selftests/timers/alarmtimer-suspend.c
tools/testing/selftests/timers/inconsistency-check.c
tools/testing/selftests/timers/leap-a-day.c
tools/testing/selftests/timers/mqueue-lat.c
tools/testing/selftests/timers/nanosleep.c
tools/testing/selftests/timers/nsleep-lat.c
tools/testing/selftests/timers/posix_timers.c
tools/testing/selftests/timers/raw_skew.c
tools/testing/selftests/timers/set-2038.c
tools/testing/selftests/timers/set-timer-lat.c
tools/testing/selftests/timers/valid-adjtimex.c