diff options
| author | Thomas Gleixner <tglx@linutronix.de> | 2008-02-10 03:04:12 -0500 |
|---|---|---|
| committer | Thomas Gleixner <tglx@linutronix.de> | 2008-04-17 06:22:30 -0400 |
| commit | a332d86d3c262cddd3de0bfa90e1910de60b4f95 (patch) | |
| tree | cb55bc594c3a00a4aa87ed3536463333b72783cb /include/linux | |
| parent | 4b119e21d0c66c22e8ca03df05d9de623d0eb50f (diff) | |
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')
| -rw-r--r-- | include/linux/thread_info.h | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/include/linux/thread_info.h b/include/linux/thread_info.h index 421323e5a2..accd7bad35 100644 --- a/include/linux/thread_info.h +++ b/include/linux/thread_info.h | |||
| @@ -9,6 +9,9 @@ | |||
| 9 | 9 | ||
| 10 | #include <linux/types.h> | 10 | #include <linux/types.h> |
| 11 | 11 | ||
| 12 | struct timespec; | ||
| 13 | struct compat_timespec; | ||
| 14 | |||
| 12 | /* | 15 | /* |
| 13 | * System call restart block. | 16 | * System call restart block. |
| 14 | */ | 17 | */ |
| @@ -26,6 +29,15 @@ struct restart_block { | |||
| 26 | u32 bitset; | 29 | u32 bitset; |
| 27 | u64 time; | 30 | u64 time; |
| 28 | } futex; | 31 | } futex; |
| 32 | /* For nanosleep */ | ||
| 33 | struct { | ||
| 34 | clockid_t index; | ||
| 35 | struct timespec __user *rmtp; | ||
| 36 | #ifdef CONFIG_COMPAT | ||
| 37 | struct compat_timespec __user *compat_rmtp; | ||
| 38 | #endif | ||
| 39 | u64 expires; | ||
| 40 | } nanosleep; | ||
| 29 | }; | 41 | }; |
| 30 | }; | 42 | }; |
| 31 | 43 | ||
