|
@@ -177,6 +177,8 @@ int do_settimeofday(struct timespec *tv)
|
|
|
|
|
|
void timer_handler(int sig, union uml_pt_regs *regs)
|
|
void timer_handler(int sig, union uml_pt_regs *regs)
|
|
{
|
|
{
|
|
|
|
+ if(current_thread->cpu == 0)
|
|
|
|
+ timer_irq(regs);
|
|
local_irq_disable();
|
|
local_irq_disable();
|
|
irq_enter();
|
|
irq_enter();
|
|
update_process_times(CHOOSE_MODE(
|
|
update_process_times(CHOOSE_MODE(
|
|
@@ -184,6 +186,4 @@ void timer_handler(int sig, union uml_pt_regs *regs)
|
|
(regs)->skas.is_user));
|
|
(regs)->skas.is_user));
|
|
irq_exit();
|
|
irq_exit();
|
|
local_irq_enable();
|
|
local_irq_enable();
|
|
- if(current_thread->cpu == 0)
|
|
|
|
- timer_irq(regs);
|
|
|
|
}
|
|
}
|