summaryrefslogtreecommitdiff
path: root/kernel/posix-timers.c
diff options
context:
space:
mode:
authorThomas Gleixner <tglx@linutronix.de>2011-02-01 13:51:20 +0000
committerThomas Gleixner <tglx@linutronix.de>2011-02-02 15:28:13 +0100
commit3751f9f29bcbc19bd10e92254a273486f150c245 (patch)
treeb359b47023f268cc741ac7c1ca88892c96d41df9 /kernel/posix-timers.c
parent59bd5bc24aa69f6c62da1e242c16f09f667def96 (diff)
downloadlinux-3.10-3751f9f29bcbc19bd10e92254a273486f150c245.tar.gz
linux-3.10-3751f9f29bcbc19bd10e92254a273486f150c245.tar.bz2
linux-3.10-3751f9f29bcbc19bd10e92254a273486f150c245.zip
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 4dd86d15bbd..4762986814c 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,
*/
long clock_nanosleep_restart(struct restart_block *restart_block)
{
- clockid_t which_clock = restart_block->arg0;
+ clockid_t which_clock = restart_block->nanosleep.index;
struct k_clock *kc = clockid_to_kclock(which_clock);
if (WARN_ON_ONCE(!kc || !kc->nsleep_restart))