diff options
author | Jeff Dike <jdike@addtoit.com> | 2006-09-26 02:33:05 -0400 |
---|---|---|
committer | Linus Torvalds <torvalds@g5.osdl.org> | 2006-09-26 11:49:08 -0400 |
commit | 537ae946e808d0f22d660f7a3500832fe0c07d14 (patch) | |
tree | 843f9adaa3c7de8b10c51d0059e2b567d81ff566 /arch/um/kernel | |
parent | 4b84c69b5f6c08a540e3683f1360a6cdef2806c7 (diff) |
[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>
Diffstat (limited to 'arch/um/kernel')
-rw-r--r-- | arch/um/kernel/time.c | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/arch/um/kernel/time.c b/arch/um/kernel/time.c index 552ca1cb9847..d1d799346e04 100644 --- a/arch/um/kernel/time.c +++ b/arch/um/kernel/time.c | |||
@@ -113,12 +113,15 @@ static void register_timer(void) | |||
113 | 113 | ||
114 | err = request_irq(TIMER_IRQ, um_timer, IRQF_DISABLED, "timer", NULL); | 114 | err = request_irq(TIMER_IRQ, um_timer, IRQF_DISABLED, "timer", NULL); |
115 | if(err != 0) | 115 | if(err != 0) |
116 | printk(KERN_ERR "timer_init : request_irq failed - " | 116 | printk(KERN_ERR "register_timer : request_irq failed - " |
117 | "errno = %d\n", -err); | 117 | "errno = %d\n", -err); |
118 | 118 | ||
119 | timer_irq_inited = 1; | 119 | timer_irq_inited = 1; |
120 | 120 | ||
121 | user_time_init(); | 121 | err = set_interval(1); |
122 | if(err != 0) | ||
123 | printk(KERN_ERR "register_timer : set_interval failed - " | ||
124 | "errno = %d\n", -err); | ||
122 | } | 125 | } |
123 | 126 | ||
124 | extern void (*late_time_init)(void); | 127 | extern void (*late_time_init)(void); |