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
This commit is contained in:
Thomas Weißschuh (Schneider Electric)
2026-08-03 12:04:45 +02:00
committed by Thomas Gleixner
parent a121128823
commit a00f90877d

View File

@@ -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