From: John Stultz Date: Wed, 13 May 2015 22:13:04 +0000 (-0700) Subject: kselftests: timers: Ease alarmtimer-suspend unreasonable latency value X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=acd5705d2d17a229b1aa0e549951ec66164b9379;p=GitHub%2Fexynos8895%2Fandroid_kernel_samsung_universal8895.git kselftests: timers: Ease alarmtimer-suspend unreasonable latency value On the hardware I have, resume latency from an alarm is often 2-3 seconds (with a fair amount of variability due to the RTC's single second granularity). Having four seconds be the pass/fail bar is maybe a little too tight, so extend this to 5 seconds. Cc: Shuah Khan Cc: Prarit Bhargava Cc: Thomas Gleixner Cc: Richard Cochran Signed-off-by: John Stultz Signed-off-by: Shuah Khan --- diff --git a/tools/testing/selftests/timers/alarmtimer-suspend.c b/tools/testing/selftests/timers/alarmtimer-suspend.c index 99a1ad331ac8..13586b68ef51 100644 --- a/tools/testing/selftests/timers/alarmtimer-suspend.c +++ b/tools/testing/selftests/timers/alarmtimer-suspend.c @@ -57,7 +57,7 @@ static inline int ksft_exit_fail(void) #define NSEC_PER_SEC 1000000000ULL -#define UNREASONABLE_LAT (NSEC_PER_SEC * 4) /* hopefully we resume in 4secs */ +#define UNREASONABLE_LAT (NSEC_PER_SEC * 5) /* hopefully we resume in 5 secs */ #define SUSPEND_SECS 15 int alarmcount;