Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 234545
b: refs/heads/master
c: a8941d7
h: refs/heads/master
i:
  234543: 9d4c419
v: v3
  • Loading branch information
Peter Zijlstra authored and Ingo Molnar committed Jan 26, 2011
1 parent ff18952 commit c9cd227
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 20 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: 414bee9ba613adb3804965e2d84db32d0599f9c6
refs/heads/master: a8941d7ec81678fb69aea7183338175f112f3e0d
23 changes: 4 additions & 19 deletions trunk/kernel/sched_idletask.c
Original file line number Diff line number Diff line change
Expand Up @@ -52,31 +52,16 @@ static void set_curr_task_idle(struct rq *rq)
{
}

static void switched_to_idle(struct rq *rq, struct task_struct *p,
int running)
static void
switched_to_idle(struct rq *rq, struct task_struct *p, int running)
{
/* Can this actually happen?? */
if (running)
resched_task(rq->curr);
else
check_preempt_curr(rq, p, 0);
BUG();
}

static void prio_changed_idle(struct rq *rq, struct task_struct *p,
int oldprio, int running)
{
/* This can happen for hot plug CPUS */

/*
* Reschedule if we are currently running on this runqueue and
* our priority decreased, or if we are not currently running on
* this runqueue and our priority is higher than the current's
*/
if (running) {
if (p->prio > oldprio)
resched_task(rq->curr);
} else
check_preempt_curr(rq, p, 0);
BUG();
}

static unsigned int get_rr_interval_idle(struct rq *rq, struct task_struct *task)
Expand Down

0 comments on commit c9cd227

Please sign in to comment.