]> err.no Git - linux-2.6/commitdiff
[PATCH] uml: fix timer initialization
authorJeff Dike <jdike@addtoit.com>
Sat, 25 Jun 2005 21:55:22 +0000 (14:55 -0700)
committerLinus Torvalds <torvalds@ppc970.osdl.org>
Sat, 25 Jun 2005 23:24:35 +0000 (16:24 -0700)
In skas mode, the call to uml_idle_timer permanently shut off the virtual
timer, resulting in no timer ticks to anything but the idle thread.  This is
likely the cause of the soft lockups that are seen sporadically in recent
UMLs.

Signed-off-by: Jeff Dike <jdike@addtoit.com>
Cc: Paolo Giarrusso <blaisorblade@yahoo.it>
Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
arch/um/kernel/process_kern.c
arch/um/kernel/skas/process_kern.c

index 0c57bc6e37472947c7e499c9ba30d6360b0cc11e..d4036ed680bcd408e82f1afd6871d77915792939 100644 (file)
@@ -169,7 +169,7 @@ int current_pid(void)
 
 void default_idle(void)
 {
-       uml_idle_timer();
+       CHOOSE_MODE(uml_idle_timer(), (void) 0);
 
        atomic_inc(&init_mm.mm_count);
        current->mm = &init_mm;
index 8f0607f54b7a734cdbd4e6d0f7f84e8b4230a27b..0a7b8aa55db8342b905a6f8b6f395e2a4a9ad9dd 100644 (file)
@@ -180,7 +180,6 @@ int start_uml_skas(void)
        start_userspace(0);
 
        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;