Repository navigation
Commit 6a65402
testing/ostest: use WDOG_MAX_DELAY for the maximum wdog delay test
The "maximum delay" case hard-coded the expanded value (CLOCK_MAX >> 2)
that WDOG_MAX_DELAY used to have. Reference the macro instead so the
test follows the wdog contract even when the kernel redefines the
maximum (for example when the watchdog is backed by an hrtimer whose
limit is HRTIMER_MAX_DELAY / NSEC_PER_TICK).
Assisted-By: mimo-v2.6-pro
Signed-off-by: ouyangxiangzhen <ouyangxiangzhen@xiaomi.com>1 parent f6bf8c5 commit 6a65402
1 file changed
Lines changed: 1 addition & 2 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
308 | 308 | | |
309 | 309 | | |
310 | 310 | | |
311 | | - | |
312 | | - | |
| 311 | + | |
313 | 312 | | |
314 | 313 | | |
315 | 314 | | |
| |||
0 commit comments