Commit a8941d7e authored by Peter Zijlstra's avatar Peter Zijlstra Committed by Ingo Molnar

sched: Simplify the idle scheduling class

Since commit 48c5ccae (sched: Simplify cpu-hot-unplug task
migration) this should no longer happen, so remove the code.
Signed-off-by: default avatarPeter Zijlstra <a.p.zijlstra@chello.nl>
LKML-Reference: <new-submission>
Signed-off-by: default avatarIngo Molnar <mingo@elte.hu>
parent 414bee9b
...@@ -52,31 +52,16 @@ static void set_curr_task_idle(struct rq *rq) ...@@ -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, static void
int running) switched_to_idle(struct rq *rq, struct task_struct *p, int running)
{ {
/* Can this actually happen?? */ BUG();
if (running)
resched_task(rq->curr);
else
check_preempt_curr(rq, p, 0);
} }
static void prio_changed_idle(struct rq *rq, struct task_struct *p, static void prio_changed_idle(struct rq *rq, struct task_struct *p,
int oldprio, int running) int oldprio, int running)
{ {
/* This can happen for hot plug CPUS */ BUG();
/*
* 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);
} }
static unsigned int get_rr_interval_idle(struct rq *rq, struct task_struct *task) static unsigned int get_rr_interval_idle(struct rq *rq, struct task_struct *task)
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment