mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
* [PATCH]sched/core: Return possibility to set RT and DL classes back
@ 2014-02-27 10:24 Kirill Tkhai
  2014-02-28 10:50 ` Kirill Tkhai
  0 siblings, 1 reply; 4+ messages in thread
From: Kirill Tkhai @ 2014-02-27 10:24 UTC (permalink / raw)
  To: linux-kernel; +Cc: Thomas Gleixner, Peter Zijlstra, Ingo Molnar, tkhai

[PATCH]sched/core: Return possibility to set RT and DL classes back

I found that it's impossible to set RT policy for tasks at the moment.

This is regression after commit [sched: Consider pi boosting in setscheduler()]
				[c365c292d05908c6ea6f32708f331e21033fe71d     ]
Fix that.

Signed-off-by: Kirill Tkhai <ktkhai@parallels.com>
CC: Thomas Gleixner <tglx@linutronix.de>
CC: Peter Zijlstra <peterz@infradead.org>
CC: Ingo Molnar <mingo@redhat.com>
---
 kernel/sched/core.c | 4 ++++
 1 file changed, 4 insertions(+)
diff --git a/kernel/sched/core.c b/kernel/sched/core.c
index 84b23ce..30cf9ad 100644
--- a/kernel/sched/core.c
+++ b/kernel/sched/core.c
@@ -3193,6 +3193,10 @@ static void __setscheduler_params(struct task_struct *p,
 	 * getparam()/getattr() don't report silly values for !rt tasks.
 	 */
 	p->rt_priority = attr->sched_priority;
+
+	p->normal_prio = normal_prio(p);
+	p->prio = rt_mutex_getprio(p);
+
 	set_load_weight(p);
 }
 



^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2014-03-03  9:36 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2014-02-27 10:24 [PATCH]sched/core: Return possibility to set RT and DL classes back Kirill Tkhai
2014-02-28 10:50 ` Kirill Tkhai
2014-03-01 18:18   ` Juri Lelli
2014-03-03  9:35     ` Peter Zijlstra

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox

Powered by JetHome