]> git.kernelconcepts.de Git - karo-tx-linux.git/commitdiff
hrtimer: add nanosleep specific restart_block member
authorThomas Gleixner <tglx@linutronix.de>
Sun, 10 Feb 2008 08:04:12 +0000 (09:04 +0100)
committerThomas Gleixner <tglx@linutronix.de>
Thu, 17 Apr 2008 10:22:30 +0000 (12:22 +0200)
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>
include/linux/thread_info.h

index 421323e5a2d6ce3e6d82b09cacf308e59c66bac7..accd7bad35b09152b8ecf2abcd8ab063c53ae5fb 100644 (file)
@@ -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;
        };
 };