diff options
| author | Benjamin Berg <[email protected]> | 2024-12-17 20:49:06 +0000 |
|---|---|---|
| committer | Johannes Berg <[email protected]> | 2025-01-10 12:50:00 +0000 |
| commit | 579e7fd383ff3f7a4f685489f8fe18cfd8659074 (patch) | |
| tree | feef61e31fb2de558cd7eb0427f20efacd31652e /drivers/gpu/drm/amd/amdgpu/amdgpu_virt.c | |
| parent | um: Remove unused user_context function (diff) | |
| download | kernel-579e7fd383ff3f7a4f685489f8fe18cfd8659074.tar.gz kernel-579e7fd383ff3f7a4f685489f8fe18cfd8659074.zip | |
um: rtc: use RTC time when calculating the alarm
The kernel realtime and the current RTC time may have a (small) offset.
Should the kernel time be slightly in the future, then the timeout is
zero. This is problematic in time-travel mode, as a zero timeout can be
correctly configured and time never advances.
Replace the kernel realtime read with a read of the actual persistent
RTC clock. Also, for time-travel, calculate the exact nanoseconds needed
for the clock to advance.
Signed-off-by: Benjamin Berg <[email protected]>
Co-developed-by: Avraham Stern <[email protected]>
Link: https://patch.msgid.link/[email protected]
Signed-off-by: Johannes Berg <[email protected]>
Diffstat (limited to 'drivers/gpu/drm/amd/amdgpu/amdgpu_virt.c')
0 files changed, 0 insertions, 0 deletions
