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>

authored by Peter Zijlstra and committed by Ingo Molnar 67e2be02 fbdcf18d

+2
+2
kernel/sched_rt.c
··· 208 209 static void task_tick_rt(struct rq *rq, struct task_struct *p) 210 { 211 /* 212 * RR tasks need a special form of timeslice management. 213 * FIFO tasks have no timeslices.
··· 208 209 static void task_tick_rt(struct rq *rq, struct task_struct *p) 210 { 211 + update_curr_rt(rq); 212 + 213 /* 214 * RR tasks need a special form of timeslice management. 215 * FIFO tasks have no timeslices.