aboutsummaryrefslogtreecommitdiffstats
path: root/kernel
diff options
context:
space:
mode:
authorPeter Zijlstra <a.p.zijlstra@chello.nl>2007-12-20 09:01:17 -0500
committerIngo Molnar <mingo@elte.hu>2007-12-20 09:01:17 -0500
commit67e2be02328b9a61a9c799fbdd4ec94d7da0c323 (patch)
treee351636bbe95a1677d21b2dfb07d1fdcca70b2f0 /kernel
parentfbdcf18df73758b2e187ab94678b30cd5f6ff9f9 (diff)
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>
Diffstat (limited to 'kernel')
-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,
208 208
209static void task_tick_rt(struct rq *rq, struct task_struct *p) 209static void task_tick_rt(struct rq *rq, struct task_struct *p)
210{ 210{
211 update_curr_rt(rq);
212
211 /* 213 /*
212 * RR tasks need a special form of timeslice management. 214 * RR tasks need a special form of timeslice management.
213 * FIFO tasks have no timeslices. 215 * FIFO tasks have no timeslices.