Gitweb:     
http://git.kernel.org/git/?p=linux/kernel/git/torvalds/linux-2.6.git;a=commit;h=67e2be02328b9a61a9c799fbdd4ec94d7da0c323
Commit:     67e2be02328b9a61a9c799fbdd4ec94d7da0c323
Parent:     fbdcf18df73758b2e187ab94678b30cd5f6ff9f9
Author:     Peter Zijlstra <[EMAIL PROTECTED]>
AuthorDate: Thu Dec 20 15:01:17 2007 +0100
Committer:  Ingo Molnar <[EMAIL PROTECTED]>
CommitDate: Thu Dec 20 15:01:17 2007 +0100

    sched: rt: account the cpu time during the tick
    
    Realtime tasks would not account their runtime during ticks. Which would 
lead
    to:
    
            struct sched_param param = { .sched_priority = 10 };
            pthread_setschedparam(pthread_self(), SCHED_FIFO, &param);
    
        while (1) ;
    
    Not showing up in top.
    
    Signed-off-by: Peter Zijlstra <[EMAIL PROTECTED]>
    Signed-off-by: Ingo Molnar <[EMAIL PROTECTED]>
    Signed-off-by: Thomas Gleixner <[EMAIL PROTECTED]>
---
 kernel/sched_rt.c |    2 ++
 1 files changed, 2 insertions(+), 0 deletions(-)

diff --git a/kernel/sched_rt.c b/kernel/sched_rt.c
index ee9c8b6..9ba3daa 100644
--- a/kernel/sched_rt.c
+++ b/kernel/sched_rt.c
@@ -208,6 +208,8 @@ move_one_task_rt(struct rq *this_rq, int this_cpu, struct 
rq *busiest,
 
 static void task_tick_rt(struct rq *rq, struct task_struct *p)
 {
+       update_curr_rt(rq);
+
        /*
         * RR tasks need a special form of timeslice management.
         * FIFO tasks have no timeslices.
-
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