summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorPeter Zijlstra <a.p.zijlstra@chello.nl>2007-12-20 15:01:17 +0100
committerIngo Molnar <mingo@elte.hu>2007-12-20 15:01:17 +0100
commit67e2be02328b9a61a9c799fbdd4ec94d7da0c323 (patch)
treee351636bbe95a1677d21b2dfb07d1fdcca70b2f0
parentfbdcf18df73758b2e187ab94678b30cd5f6ff9f9 (diff)
downloadtalos-obmc-linux-67e2be02328b9a61a9c799fbdd4ec94d7da0c323.tar.gz
talos-obmc-linux-67e2be02328b9a61a9c799fbdd4ec94d7da0c323.zip
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 <a.p.zijlstra@chello.nl> Signed-off-by: Ingo Molnar <mingo@elte.hu> Signed-off-by: Thomas Gleixner <tglx@linutronix.de>
-rw-r--r--kernel/sched_rt.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/kernel/sched_rt.c b/kernel/sched_rt.c
index ee9c8b6529e9..9ba3daa03475 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.
OpenPOWER on IntegriCloud