diff options
| author | Thomas Gleixner <tglx@linutronix.de> | 2008-08-31 11:19:15 -0400 |
|---|---|---|
| committer | Arjan van de Ven <arjan@linux.intel.com> | 2008-09-06 00:35:01 -0400 |
| commit | be5dad20a55e054a35dac7f6f5f184dc72b379b4 (patch) | |
| tree | 2d0e84aaa0798b6cea140b712d384bda850d1ece /include | |
| parent | b773ad40aca5bd755ba886620842f16e8fef6d75 (diff) | |
select: add a poll specific struct to the restart_block union
with hrtimer poll/select, the signal restart data no longer is a single
long representing a jiffies count, but it becomes a second/nanosecond pair
that also needs to encode if there was a timeout at all or not.
This patch adds a struct to the restart_block union for this purpose
Signed-off-by: Thomas Gleixner <tglx@linutronix.de>
Signed-off-by: Arjan van de Ven <arjan@linux.intel.com>
Diffstat (limited to 'include')
| -rw-r--r-- | include/linux/thread_info.h | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/include/linux/thread_info.h b/include/linux/thread_info.h index 38a56477f27a..e6b820f8b56b 100644 --- a/include/linux/thread_info.h +++ b/include/linux/thread_info.h | |||
| @@ -38,6 +38,14 @@ struct restart_block { | |||
| 38 | #endif | 38 | #endif |
| 39 | u64 expires; | 39 | u64 expires; |
| 40 | } nanosleep; | 40 | } nanosleep; |
| 41 | /* For poll */ | ||
| 42 | struct { | ||
| 43 | struct pollfd __user *ufds; | ||
| 44 | int nfds; | ||
| 45 | int has_timeout; | ||
| 46 | unsigned long tv_sec; | ||
| 47 | unsigned long tv_nsec; | ||
| 48 | } poll; | ||
| 41 | }; | 49 | }; |
| 42 | }; | 50 | }; |
| 43 | 51 | ||
