2004-09-14 06:27:49

by Jeff Dike

[permalink] [raw]
Subject: [PATCH] UML - Enable the timer *after* the timer handler

Otherwise, we'll sometimes get timer interrupts that we can't handle.

Signed-off-by: Jeff Dike <[email protected]>

Index: 2.6.9-rc2/arch/um/kernel/skas/process_kern.c
===================================================================
--- 2.6.9-rc2.orig/arch/um/kernel/skas/process_kern.c 2004-09-14 02:03:57.000000000 -0400
+++ 2.6.9-rc2/arch/um/kernel/skas/process_kern.c 2004-09-14 02:04:00.000000000 -0400
@@ -224,9 +224,9 @@
{
start_userspace(0);
capture_signal_stack();
- uml_idle_timer();

init_new_thread_signals(1);
+ uml_idle_timer();

init_task.thread.request.u.thread.proc = start_kernel_proc;
init_task.thread.request.u.thread.arg = NULL;
More recent patches modify files in timer.