diff options
| author | Hung-Jui Lin <alex.lin.programmer@gmail.com> | 2026-10-23 23:14:11 +0800 |
|---|---|---|
| committer | Thomas Gleixner <tglx@kernel.org> | 2026-10-25 22:43:19 +0100 |
| commit | 45aeb7b3039355cfaf01ee1f7e104a55a8d61d0b (patch) | |
| tree | d316ca77c9806578576703e403304512e90242b1 /kernel | |
| parent | 141a27750ec3d91ad9d1ad1764ebb5e51b963478 (diff) | |
| download | linux-45aeb7b3039355cfaf01ee1f7e104a55a8d61d0b.tar.gz linux-45aeb7b3039355cfaf01ee1f7e104a55a8d61d0b.zip | |
selftests: timers: Add a test for disarmed SIGEV_NONE timers
timer_gettime() must report a zero it_value for a disarmed timer. For
SIGEV_NONE timers, common_timer_get() reported the remaining time of the
previous arming instead.
Add check_sigev_none_disarm(). It arms a SIGEV_NONE oneshot timer, checks
that a remaining time is reported, disarms the timer and checks that
it_value is zero. Run it for CLOCK_MONOTONIC and CLOCK_PROCESS_CPUTIME_ID,
as CPU timers use a separate implementation.
Without the preceding fix, the CLOCK_MONOTONIC case fails.
Signed-off-by: Hung-Jui Lin <alex.lin.programmer@gmail.com>
Signed-off-by: Thomas Gleixner <tglx@kernel.org>
Link: https://patch.msgid.link/20261023151411.28685-2-alex.lin.programmer@gmail.com
Diffstat (limited to 'kernel')
0 files changed, 0 insertions, 0 deletions
