summaryrefslogtreecommitdiff
path: root/include/linux/restart_block.h
diff options
context:
space:
mode:
authorThomas Weißschuh <thomas.weissschuh@linutronix.de>2025-11-10 12:38:53 +0300
committerThomas Gleixner <tglx@linutronix.de>2025-11-14 18:31:19 +0300
commit4702f4eceb639b6af199151e352e570943619d98 (patch)
tree1f9805c1e9645d3601c966093c421944e012cff2 /include/linux/restart_block.h
parentba14500e4bfcab5e841fbf8d7fcbbc80e98d6b9e (diff)
downloadlinux-4702f4eceb639b6af199151e352e570943619d98.tar.xz
hrtimer: Store time as ktime_t in restart block
The hrtimer core uses ktime_t to represent times, use that also for the restart block. CPU timers internally use nanoseconds instead of ktime_t but use the same restart block, so use the correct accessors for those. Signed-off-by: Thomas Weißschuh <thomas.weissschuh@linutronix.de> Signed-off-by: Thomas Gleixner <tglx@linutronix.de> Link: https://patch.msgid.link/20251110-restart-block-expiration-v1-3-5d39cc93df4f@linutronix.de
Diffstat (limited to 'include/linux/restart_block.h')
-rw-r--r--include/linux/restart_block.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/include/linux/restart_block.h b/include/linux/restart_block.h
index 7e50bbc94e47..36ddfa1ec301 100644
--- a/include/linux/restart_block.h
+++ b/include/linux/restart_block.h
@@ -43,7 +43,7 @@ struct restart_block {
struct __kernel_timespec __user *rmtp;
struct old_timespec32 __user *compat_rmtp;
};
- u64 expires;
+ ktime_t expires;
} nanosleep;
/* For poll */
struct {