Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit be5dad20 authored by Thomas Gleixner's avatar Thomas Gleixner Committed by Arjan van de Ven
Browse files

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: default avatarThomas Gleixner <tglx@linutronix.de>
Signed-off-by: default avatarArjan van de Ven <arjan@linux.intel.com>
parent b773ad40
Loading
Loading
Loading
Loading
+8 −0
Original line number Original line Diff line number Diff line
@@ -38,6 +38,14 @@ struct restart_block {
#endif
#endif
			u64 expires;
			u64 expires;
		} nanosleep;
		} nanosleep;
		/* For poll */
		struct {
			struct pollfd __user *ufds;
			int nfds;
			int has_timeout;
			unsigned long tv_sec;
			unsigned long tv_nsec;
		} poll;
	};
	};
};
};