diff options
| author | Thomas Weißschuh (Schneider Electric) <thomas.weissschuh@linutronix.de> | 2026-08-03 12:04:45 +0200 |
|---|---|---|
| committer | Thomas Gleixner <tglx@kernel.org> | 2026-08-11 18:11:21 +0200 |
| commit | a00f90877dcd4176da3564f5f126547aa3ddfead (patch) | |
| tree | 65d24be1596fa7b4dbf7b01d753d5094f0b8e416 /tools/testing | |
| parent | a1211288234058b0d13e2cc4a910b556c5308fdd (diff) | |
| download | linux-a00f90877dcd4176da3564f5f126547aa3ddfead.tar.gz linux-a00f90877dcd4176da3564f5f126547aa3ddfead.zip | |
selftests: timers: nsleep-lat: Use NSEC_PER_MSEC define for unreasonable latency
Use the predefined symbol to make the code easier to understand.
Signed-off-by: Thomas Weißschuh (Schneider Electric) <thomas.weissschuh@linutronix.de>
Signed-off-by: Thomas Gleixner <tglx@kernel.org>
Acked-by: John Stultz <jstultz@google.com>
Link: https://patch.msgid.link/20260803-auxclock-nanosleep-prep-v2-14-910cbd485390@linutronix.de
Diffstat (limited to 'tools/testing')
| -rw-r--r-- | tools/testing/selftests/timers/nsleep-lat.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/tools/testing/selftests/timers/nsleep-lat.c b/tools/testing/selftests/timers/nsleep-lat.c index d22973c87f21..d46f17404439 100644 --- a/tools/testing/selftests/timers/nsleep-lat.c +++ b/tools/testing/selftests/timers/nsleep-lat.c @@ -27,7 +27,7 @@ #include "clock-helpers.h" #include "kselftest.h" -#define UNRESONABLE_LATENCY 40000000 /* 40ms in nanosecs */ +#define UNRESONABLE_LATENCY (40 * NSEC_PER_MSEC) /* CLOCK_HWSPECIFIC == CLOCK_SGI_CYCLE (Deprecated) */ #define CLOCK_HWSPECIFIC 10 |
