select: add a poll specific struct to the restart_block union
authorThomas Gleixner <tglx@linutronix.de>
Sun, 31 Aug 2008 15:19:15 +0000 (08:19 -0700)
committerArjan van de Ven <arjan@linux.intel.com>
Sat, 6 Sep 2008 04:35:01 +0000 (21:35 -0700)
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>
include/linux/thread_info.h

index 38a56477f27ada34c3cd6e56c912205b066bc413..e6b820f8b56b8ae3bf50ac980d1e95ce3ad6536e 100644 (file)
@@ -38,6 +38,14 @@ struct restart_block {
 #endif
                        u64 expires;
                } nanosleep;
+               /* For poll */
+               struct {
+                       struct pollfd __user *ufds;
+                       int nfds;
+                       int has_timeout;
+                       unsigned long tv_sec;
+                       unsigned long tv_nsec;
+               } poll;
        };
 };