[PATCH] UML - Enable the timer *after* the timer handler

From: Jeff Dike
Date: Tue Sep 14 2004 - 01:38:05 EST


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

Signed-off-by: Jeff Dike <jdike@xxxxxxxxxxx>

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.

-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/