[PATCH] uml: timer cleanups
commit537ae946e808d0f22d660f7a3500832fe0c07d14
authorJeff Dike <jdike@addtoit.com>
Tue, 26 Sep 2006 06:33:05 +0000 (25 23:33 -0700)
committerLinus Torvalds <torvalds@g5.osdl.org>
Tue, 26 Sep 2006 15:49:08 +0000 (26 08:49 -0700)
tree843f9adaa3c7de8b10c51d0059e2b567d81ff566
parent4b84c69b5f6c08a540e3683f1360a6cdef2806c7
[PATCH] uml: timer cleanups

set_interval returns an error instead of panicing if setitimer fails.  Some of
its callers now check the return.

enable_timer is largely tt-mode-specific, so it is marked as such, and the
only skas-mode caller is made to call set-interval instead.

user_time_init was a no-value-added wrapper around set_interval, so it is
gone.

Since set_interval is now called from kernel code, callers no longer pass
ITIMER_* to it.  Instead, they pass a flag which is converted into ITIMER_REAL
or ITIMER_VIRTUAL.

Signed-off-by: Jeff Dike <jdike@addtoit.com>
Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
arch/um/include/os.h
arch/um/kernel/time.c
arch/um/os-Linux/skas/process.c
arch/um/os-Linux/time.c