-
- Downloads
[PATCH] posix-timers: Fix clock_nanosleep() doesn't return the remaining time in compatibility mode
The clock_nanosleep() function does not return the time remaining when the sleep is interrupted by a signal. This patch creates a new call out, compat_clock_nanosleep_restart(), which handles returning the remaining time after a sleep is interrupted. This patch revives clock_nanosleep_restart(). It is now accessed via the new call out. The compat_clock_nanosleep_restart() is used for compatibility access. Since this is implemented in compatibility mode the normal path is virtually unaffected - no real performance impact. Signed-off-by:Toyo Abe <toyoa@mvista.com> Cc: Thomas Gleixner <tglx@linutronix.de> Cc: Ingo Molnar <mingo@elte.hu> Cc: Roland McGrath <roland@redhat.com> Signed-off-by:
Andrew Morton <akpm@osdl.org> Signed-off-by:
Linus Torvalds <torvalds@osdl.org>
Showing
- include/linux/hrtimer.h 1 addition, 0 deletionsinclude/linux/hrtimer.h
- include/linux/posix-timers.h 4 additions, 0 deletionsinclude/linux/posix-timers.h
- kernel/compat.c 33 additions, 0 deletionskernel/compat.c
- kernel/hrtimer.c 10 additions, 10 deletionskernel/hrtimer.c
- kernel/posix-cpu-timers.c 12 additions, 5 deletionskernel/posix-cpu-timers.c
- kernel/posix-timers.c 21 additions, 0 deletionskernel/posix-timers.c
Loading
Please register or sign in to comment