[PATCH] UML - fix update_process_times call

From: Jeff Dike
Date: Fri Dec 03 2004 - 15:08:14 EST


From: Bodo Stroesser <bstroesser@xxxxxxxxxxxxxxxxxxx>

In call to update_process_times() set parameter user
correctly. (was from for SKAS).

Signed-off-by: Bodo Stroesser <bstroesser@xxxxxxxxxxxxxxxxxxx>
Signed-off-by: Jeff Dike <jdike@xxxxxxxxxxx>

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@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/