aboutsummaryrefslogtreecommitdiffstats
path: root/kernel/posix-timers.c
diff options
context:
space:
mode:
authorThomas Gleixner <tglx@linutronix.de>2011-02-01 08:51:20 -0500
committerThomas Gleixner <tglx@linutronix.de>2011-02-02 09:28:13 -0500
commit3751f9f29bcbc19bd10e92254a273486f150c245 (patch)
treeb359b47023f268cc741ac7c1ca88892c96d41df9 /kernel/posix-timers.c
parent59bd5bc24aa69f6c62da1e242c16f09f667def96 (diff)
posix-timers: Cleanup restart_block usage
posix timers still use the legacy arg0-arg3 members of restart_block. Use restart_block.nanosleep instead Signed-off-by: Thomas Gleixner <tglx@linutronix.de> Acked-by: John Stultz <johnstul@us.ibm.com> Tested-by: Richard Cochran <richard.cochran@omicron.at> LKML-Reference: <20110201134418.232288779@linutronix.de>
Diffstat (limited to 'kernel/posix-timers.c')
-rw-r--r--kernel/posix-timers.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/kernel/posix-timers.c b/kernel/posix-timers.c
index 4dd86d15bbd0..4762986814c8 100644
--- a/kernel/posix-timers.c
+++ b/kernel/posix-timers.c
@@ -1034,7 +1034,7 @@ SYSCALL_DEFINE4(clock_nanosleep, const clockid_t, which_clock, int, flags,
1034 */ 1034 */
1035long clock_nanosleep_restart(struct restart_block *restart_block) 1035long clock_nanosleep_restart(struct restart_block *restart_block)
1036{ 1036{
1037 clockid_t which_clock = restart_block->arg0; 1037 clockid_t which_clock = restart_block->nanosleep.index;
1038 struct k_clock *kc = clockid_to_kclock(which_clock); 1038 struct k_clock *kc = clockid_to_kclock(which_clock);
1039 1039
1040 if (WARN_ON_ONCE(!kc || !kc->nsleep_restart)) 1040 if (WARN_ON_ONCE(!kc || !kc->nsleep_restart))