From: Oleg Nesterov Date: Wed, 27 Apr 2011 19:24:19 +0000 (+0200) Subject: signal: sys_rt_sigtimedwait: simplify the timeout logic X-Git-Tag: v3.0-rc1~382^2~8 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=fe0faa005d43bc44c357631d51c273806086caa4;p=pandora-kernel.git signal: sys_rt_sigtimedwait: simplify the timeout logic No functional changes, cleanup compat_sys_rt_sigtimedwait() and sys_rt_sigtimedwait(). Calculate the timeout before we take ->siglock, this simplifies and lessens the code. Use timespec_valid() to check the timespec. Signed-off-by: Oleg Nesterov Acked-by: Tejun Heo Reviewed-by: Matt Fleming --- Reading git-diff-tree failed