• Jeff Dike's avatar
    [PATCH] uml: timer cleanups · 537ae946
    Jeff Dike authored
    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: default avatarJeff Dike <jdike@addtoit.com>
    Signed-off-by: default avatarAndrew Morton <akpm@osdl.org>
    Signed-off-by: default avatarLinus Torvalds <torvalds@osdl.org>
    537ae946
time.c 3.89 KB