[PATCH v3 0/4] vdso/gettimeofday: Add support for ALARM clocks

From: Thomas Weißschuh

Date: Tue Nov 10 2026 - 11:18:02 EST


Extend the generic vDSO library to also handle CLOCK_BOOTTIME_ALARM
and CLOCK_REALTIME_ALARM.

This has a conflict with the alartimer changes in tip/timers/core.
Resolve it by moving vdso_time_enable_alarmclock() after
WRITE_ONCE(rtcdev, rtc). Or I will just resend the patches next cycle.

Signed-off-by: Thomas Weißschuh <linux@xxxxxxxxxxxxxx>
---
Changes in v3:
- Return an error when the RTC device is missing.
- Rebase on tip/timers/vdso.
- Link to v2: https://patch.msgid.link/20260929-vdso-alarm-clocks-v2-0-a7af4089a698@xxxxxxxxxxxxxx

Changes in v2:
- Rebase on tip/timers/vdso.
- Add Signed-off-by tags.
- Link to v1: https://patch.msgid.link/20260921-vdso-alarm-clocks-v1-0-617abb5271c7@xxxxxxxxxxxxxx

---
Thomas Weißschuh (4):
selftests: vDSO: vdso_test_abi: Also test ALARM clocks
vdso: Add alarmclock support infrastructure
vdso/gettimeofday: Add support for CLOCK_BOOTTIME_ALARM
vdso/gettimeofday: Add support for CLOCK_REALTIME_ALARM

include/vdso/datapage.h | 4 +++-
kernel/time/alarmtimer.c | 2 ++
kernel/time/timekeeping_internal.h | 4 ++++
kernel/time/vsyscall.c | 18 ++++++++++++++++++
lib/vdso/gettimeofday.c | 12 ++++++++++++
tools/testing/selftests/vDSO/vdso_test_abi.c | 4 +++-
6 files changed, 42 insertions(+), 2 deletions(-)
---
base-commit: 689868cc2af9cae9a4eff90eadf5726bdc20cd82
change-id: 20260921-vdso-alarm-clocks-6502a551ad5c

Best regards,
--
Thomas Weißschuh <linux@xxxxxxxxxxxxxx>