Gitweb:     
http://git.kernel.org/git/?p=linux/kernel/git/torvalds/linux-2.6.git;a=commit;h=f1a438d813d416fa9f4be4e6dbd10b54c5938d89
Commit:     f1a438d813d416fa9f4be4e6dbd10b54c5938d89
Parent:     0915c4e89d311948b67cdd4c183a2efbcafcc9f9
Author:     Ingo Molnar <[EMAIL PROTECTED]>
AuthorDate: Thu Aug 9 11:16:45 2007 +0200
Committer:  Ingo Molnar <[EMAIL PROTECTED]>
CommitDate: Thu Aug 9 11:16:45 2007 +0200

    sched: reorder update_cpu_load(rq) with the ->task_tick() call
    
    Peter Williams suggested to flip the order of update_cpu_load(rq) with
    the ->task_tick() call. This is a NOP for the current scheduler (the
    two functions are independent of each other), ->task_tick() might
    create some state for update_cpu_load() in the future (or in PlugSched).
    
    Signed-off-by: Ingo Molnar <[EMAIL PROTECTED]>
---
 kernel/sched.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/kernel/sched.c b/kernel/sched.c
index 72bb948..4680f52 100644
--- a/kernel/sched.c
+++ b/kernel/sched.c
@@ -3298,9 +3298,9 @@ void scheduler_tick(void)
        struct task_struct *curr = rq->curr;
 
        spin_lock(&rq->lock);
+       update_cpu_load(rq);
        if (curr != rq->idle) /* FIXME: needed? */
                curr->sched_class->task_tick(rq, curr);
-       update_cpu_load(rq);
        spin_unlock(&rq->lock);
 
 #ifdef CONFIG_SMP
-
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  http://vger.kernel.org/majordomo-info.html

Reply via email to