diff --git a/kernel/sched.c b/kernel/sched.c index 5f64fed56a44d9528c8d2abce0913682dcdda4ba..728081a7ef1c405f1768f45de8945f840d5830a9 100644 --- a/kernel/sched.c +++ b/kernel/sched.c @@ -1855,12 +1855,6 @@ static void dec_nr_running(struct rq *rq) static void set_load_weight(struct task_struct *p) { - if (task_has_rt_policy(p)) { - p->se.load.weight = 0; - p->se.load.inv_weight = WMULT_CONST; - return; - } - /* * SCHED_IDLE tasks get minimal weight: */