]> err.no Git - linux-2.6/commit
hrtimer: don't modify restart_block->fn in restart functions
authorOleg Nesterov <oleg@tv-sign.ru>
Fri, 1 Feb 2008 17:41:30 +0000 (20:41 +0300)
committerThomas Gleixner <tglx@linutronix.de>
Sun, 10 Feb 2008 09:48:03 +0000 (10:48 +0100)
commitc289b074b66e2e59c65aba73f40b99e797e92d2f
tree03ecf2381f33941e8d84e1d5b2d8e106109ea7da
parent416529374b4793ba2d2e97e736d108a2e0f3ef07
hrtimer: don't modify restart_block->fn in restart functions

hrtimer_nanosleep_restart() clears/restores restart_block->fn. This is
pointless and complicates its usage. Note that if sys_restart_syscall()
doesn't actually happen, we have a bogus "pending" restart->fn anyway,
this is harmless.

Signed-off-by: Oleg Nesterov <oleg@tv-sign.ru>
Cc: Alexey Dobriyan <adobriyan@sw.ru>
Cc: Pavel Emelyanov <xemul@sw.ru>
Cc: Peter Zijlstra <a.p.zijlstra@chello.nl>
Cc: Toyo Abe <toyoa@mvista.com>
Cc: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Thomas Gleixner <tglx@linutronix.de>
kernel/compat.c
kernel/hrtimer.c