Commit:     c83e44842074a87614c78eca70fa6467b0bc3c4a
Parent:     f1adc05e77383017bc63ea9c48ba217da76682b8
Author:     Jeff Dike <[EMAIL PROTECTED]>
AuthorDate: Tue May 8 00:23:22 2007 -0700
Committer:  Linus Torvalds <[EMAIL PROTECTED]>
CommitDate: Tue May 8 11:14:57 2007 -0700

    uml: an idle system should have zero load average
    The ever-vigilant users of noticed that an idle 2.6 UML has a
    persistent load average of ~.4.
    It turns out that because the UML timer handler processed softirqs before
    actually delivering the tick, the tick was counted in the context of the 
    thread about half the time.
    Signed-off-by: Jeff Dike <[EMAIL PROTECTED]>
    Cc: Paolo 'Blaisorblade' Giarrusso <[EMAIL PROTECTED]>
    Signed-off-by: Andrew Morton <[EMAIL PROTECTED]>
    Signed-off-by: Linus Torvalds <[EMAIL PROTECTED]>
 arch/um/kernel/time.c |    4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/arch/um/kernel/time.c b/arch/um/kernel/time.c
index cd7349d..259c49d 100644
--- a/arch/um/kernel/time.c
+++ b/arch/um/kernel/time.c
@@ -177,6 +177,8 @@ int do_settimeofday(struct timespec *tv)
 void timer_handler(int sig, union uml_pt_regs *regs)
+       if(current_thread->cpu == 0)
+               timer_irq(regs);
@@ -184,6 +186,4 @@ void timer_handler(int sig, union uml_pt_regs *regs)
-       if(current_thread->cpu == 0)
-               timer_irq(regs);
To unsubscribe from this list: send the line "unsubscribe git-commits-head" in
the body of a message to [EMAIL PROTECTED]
More majordomo info at

Reply via email to