[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.
Showing
Please register or sign in to comment