[PATCH] UML - fix update_process_times call
From: Jeff Dike (jdike_at_addtoit.com)
Date: 12/03/04
- Previous message: Jeff Dike: "[PATCH] UML - Allow vsyscall code to build on 2.4"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
To: akpm@osdl.org Date: Fri, 03 Dec 2004 16:45:43 -0500
From: Bodo Stroesser <bstroesser@fujitsu-siemens.com>
In call to update_process_times() set parameter user
correctly. (was from for SKAS).
Signed-off-by: Bodo Stroesser <bstroesser@fujitsu-siemens.com>
Signed-off-by: Jeff Dike <jdike@addtoit.com>
Index: 2.6.9/arch/um/kernel/time_kern.c
===================================================================
--- 2.6.9.orig/arch/um/kernel/time_kern.c 2004-12-01 23:43:04.000000000 -0500
+++ 2.6.9/arch/um/kernel/time_kern.c 2004-12-01 23:54:26.000000000 -0500
@@ -170,7 +170,7 @@
void timer_handler(int sig, union uml_pt_regs *regs)
{
local_irq_disable();
- update_process_times(user_context(UPT_SP(regs)));
+ update_process_times(CHOOSE_MODE(user_context(UPT_SP(regs)), (regs)->skas.is_user));
local_irq_enable();
if(current_thread->cpu == 0)
timer_irq(regs);
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/
- Previous message: Jeff Dike: "[PATCH] UML - Allow vsyscall code to build on 2.4"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]