[PATCH] posix-timers: Fix clock_nanosleep() doesn't return the remaining time in...
authorToyo Abe <toyoa@mvista.com>
Fri, 29 Sep 2006 09:00:28 +0000 (02:00 -0700)
committerLinus Torvalds <torvalds@g5.osdl.org>
Fri, 29 Sep 2006 16:18:15 +0000 (09:18 -0700)
commit1711ef3866b0360e102327389fe4b76c849bbe83
treeb74a2cb6167840563d450859a571d6685966b771
parent9c4751fd0eab5b8ebbfafb28cbcc8e03b0da5933
[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>
include/linux/hrtimer.h
include/linux/posix-timers.h
kernel/compat.c
kernel/hrtimer.c
kernel/posix-cpu-timers.c
kernel/posix-timers.c