]> git.hungrycats.org Git - linux/commit
[PATCH] sys_nanosleep() fix
authorAndrew Morton <akpm@digeo.com>
Thu, 20 Mar 2003 13:47:19 +0000 (05:47 -0800)
committerLinus Torvalds <torvalds@home.transmeta.com>
Thu, 20 Mar 2003 13:47:19 +0000 (05:47 -0800)
commit0a20887d9f91fa293a3346b8aaea8f63609b1013
treee4f1852fba1073449f0ff126ce51cc9f2afaccba
parenta20b40ff55b2284898bf8f02f921b200cf57a7ab
[PATCH] sys_nanosleep() fix

The current nanosleep implementation has a signedness problem which can cause
it to sleep for 0x7ffffffe jiffies if a clock interrupt happens at the wrong
time.

The patch fixes that up, and also fixes an wrapping-unsafe 64-bit time
comparison.  Also uninline tstojiffie(), which has three call sites.
kernel/posix-timers.c