aboutsummaryrefslogtreecommitdiffstats
path: root/arch/um
diff options
context:
space:
mode:
Diffstat (limited to 'arch/um')
-rw-r--r--arch/um/kernel/time.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/arch/um/kernel/time.c b/arch/um/kernel/time.c
index cd7349de8ca6..259c49da7ff5 100644
--- a/arch/um/kernel/time.c
+++ b/arch/um/kernel/time.c
@@ -177,6 +177,8 @@ int do_settimeofday(struct timespec *tv)
177 177
178void timer_handler(int sig, union uml_pt_regs *regs) 178void timer_handler(int sig, union uml_pt_regs *regs)
179{ 179{
180 if(current_thread->cpu == 0)
181 timer_irq(regs);
180 local_irq_disable(); 182 local_irq_disable();
181 irq_enter(); 183 irq_enter();
182 update_process_times(CHOOSE_MODE( 184 update_process_times(CHOOSE_MODE(
@@ -184,6 +186,4 @@ void timer_handler(int sig, union uml_pt_regs *regs)
184 (regs)->skas.is_user)); 186 (regs)->skas.is_user));
185 irq_exit(); 187 irq_exit();
186 local_irq_enable(); 188 local_irq_enable();
187 if(current_thread->cpu == 0)
188 timer_irq(regs);
189} 189}