summaryrefslogtreecommitdiffstats
path: root/kernel/sched_idletask.c
diff options
context:
space:
mode:
authorPeter Zijlstra <a.p.zijlstra@chello.nl>2011-01-25 16:30:03 +0100
committerIngo Molnar <mingo@elte.hu>2011-01-26 12:33:22 +0100
commita8941d7ec81678fb69aea7183338175f112f3e0d (patch)
treea55aabbbdb060f1d320b47b697b4e8e0b0c2ec38 /kernel/sched_idletask.c
parent414bee9ba613adb3804965e2d84db32d0599f9c6 (diff)
downloadlinux-stable-a8941d7ec81678fb69aea7183338175f112f3e0d.tar.gz
linux-stable-a8941d7ec81678fb69aea7183338175f112f3e0d.tar.bz2
linux-stable-a8941d7ec81678fb69aea7183338175f112f3e0d.zip
sched: Simplify the idle scheduling class
Since commit 48c5ccae88dcd (sched: Simplify cpu-hot-unplug task migration) this should no longer happen, so remove the code. Signed-off-by: Peter Zijlstra <a.p.zijlstra@chello.nl> LKML-Reference: <new-submission> Signed-off-by: Ingo Molnar <mingo@elte.hu>
Diffstat (limited to 'kernel/sched_idletask.c')
-rw-r--r--kernel/sched_idletask.c23
1 files changed, 4 insertions, 19 deletions
diff --git a/kernel/sched_idletask.c b/kernel/sched_idletask.c
index 9fa0f402c87c..41eb62a0808b 100644
--- a/kernel/sched_idletask.c
+++ b/kernel/sched_idletask.c
@@ -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)