Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 64370
b: refs/heads/master
c: 98fbc79
h: refs/heads/master
v: v3
  • Loading branch information
Dmitry Adamushko authored and Ingo Molnar committed Aug 24, 2007
1 parent 352fadd commit 844541e
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 4 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: deac4ee65af4befb66b542e4a782e63da93b51a0
refs/heads/master: 98fbc798533339be802c6dcd48c2293c712e87db
11 changes: 8 additions & 3 deletions trunk/kernel/sched_rt.c
Original file line number Diff line number Diff line change
Expand Up @@ -207,10 +207,15 @@ static void task_tick_rt(struct rq *rq, struct task_struct *p)
return;

p->time_slice = static_prio_timeslice(p->static_prio);
set_tsk_need_resched(p);

/* put it at the end of the queue: */
requeue_task_rt(rq, p);
/*
* Requeue to the end of queue if we are not the only element
* on the queue:
*/
if (p->run_list.prev != p->run_list.next) {
requeue_task_rt(rq, p);
set_tsk_need_resched(p);
}
}

static struct sched_class rt_sched_class __read_mostly = {
Expand Down

0 comments on commit 844541e

Please sign in to comment.