From: Thomas Gleixner Date: Sun, 10 Feb 2008 08:04:12 +0000 (+0100) Subject: hrtimer: add nanosleep specific restart_block member X-Git-Tag: v2.6.26-rc1~1151^2~9 X-Git-Url: https://err.no/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=a332d86d3c262cddd3de0bfa90e1910de60b4f95;p=linux-2.6 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 --- 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 @@ #include +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; }; };