.. | .. |
---|
2024 | 2024 | if (!timespec64_valid(&tu)) |
---|
2025 | 2025 | return -EINVAL; |
---|
2026 | 2026 | |
---|
| 2027 | + current->restart_block.fn = do_no_restart_syscall; |
---|
2027 | 2028 | current->restart_block.nanosleep.type = rmtp ? TT_NATIVE : TT_NONE; |
---|
2028 | 2029 | current->restart_block.nanosleep.rmtp = rmtp; |
---|
2029 | 2030 | return hrtimer_nanosleep(timespec64_to_ktime(tu), HRTIMER_MODE_REL, |
---|
.. | .. |
---|
2045 | 2046 | if (!timespec64_valid(&tu)) |
---|
2046 | 2047 | return -EINVAL; |
---|
2047 | 2048 | |
---|
| 2049 | + current->restart_block.fn = do_no_restart_syscall; |
---|
2048 | 2050 | current->restart_block.nanosleep.type = rmtp ? TT_COMPAT : TT_NONE; |
---|
2049 | 2051 | current->restart_block.nanosleep.compat_rmtp = rmtp; |
---|
2050 | 2052 | return hrtimer_nanosleep(timespec64_to_ktime(tu), HRTIMER_MODE_REL, |
---|