summaryrefslogtreecommitdiffstats
path: root/include/linux/thread_info.h
diff options
context:
space:
mode:
authorThomas Gleixner <tglx@linutronix.de>2008-02-10 09:04:12 +0100
committerThomas Gleixner <tglx@linutronix.de>2008-04-17 12:22:30 +0200
commita332d86d3c262cddd3de0bfa90e1910de60b4f95 (patch)
treecb55bc594c3a00a4aa87ed3536463333b72783cb /include/linux/thread_info.h
parent4b119e21d0c66c22e8ca03df05d9de623d0eb50f (diff)
downloadlinux-stable-a332d86d3c262cddd3de0bfa90e1910de60b4f95.tar.gz
linux-stable-a332d86d3c262cddd3de0bfa90e1910de60b4f95.tar.bz2
linux-stable-a332d86d3c262cddd3de0bfa90e1910de60b4f95.zip
hrtimer: add nanosleep specific restart_block member
The back and forth typecasting of restart_block->args is horrible. We added a separate union member for futex already. Do the same for nanosleep. Signed-off-by: Thomas Gleixner <tglx@linutronix.de>
Diffstat (limited to 'include/linux/thread_info.h')
-rw-r--r--include/linux/thread_info.h12
1 files changed, 12 insertions, 0 deletions
diff --git a/include/linux/thread_info.h b/include/linux/thread_info.h
index 421323e5a2d6..accd7bad35b0 100644
--- a/include/linux/thread_info.h
+++ b/include/linux/thread_info.h
@@ -9,6 +9,9 @@
#include <linux/types.h>
+struct timespec;
+struct compat_timespec;
+
/*
* System call restart block.
*/
@@ -26,6 +29,15 @@ struct restart_block {
u32 bitset;
u64 time;
} futex;
+ /* For nanosleep */
+ struct {
+ clockid_t index;
+ struct timespec __user *rmtp;
+#ifdef CONFIG_COMPAT
+ struct compat_timespec __user *compat_rmtp;
+#endif
+ u64 expires;
+ } nanosleep;
};
};