* [PATCH TIRIVAL] sched/core: Use TASK_USER_PRIO macro in set_load_weight()
@ 2014-02-11 6:38 Kamalesh Babulal
0 siblings, 0 replies; only message in thread
From: Kamalesh Babulal @ 2014-02-11 6:38 UTC (permalink / raw)
To: linux-kernel; +Cc: Ingo Molnar, Peter Zijlstra
Use TASK_USER_PRIO macro, instead of handcoding priority to
set load weight.
Signed-off-by: Kamalesh Babulal <kamalesh@linux.vnet.ibm.com>
---
kernel/sched/core.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/kernel/sched/core.c b/kernel/sched/core.c
index 104c8164e04f..5f1c24bc453a 100644
--- a/kernel/sched/core.c
+++ b/kernel/sched/core.c
@@ -742,7 +742,7 @@ int tg_nop(struct task_group *tg, void *data)
static void set_load_weight(struct task_struct *p)
{
- int prio = p->static_prio - MAX_RT_PRIO;
+ int prio = TASK_USER_PRIO(p);
struct load_weight *load = &p->se.load;
/*
--
1.8.4.474.g128a96c
^ permalink raw reply related [flat|nested] only message in thread
only message in thread, other threads:[~2014-02-11 6:38 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2014-02-11 6:38 [PATCH TIRIVAL] sched/core: Use TASK_USER_PRIO macro in set_load_weight() Kamalesh Babulal
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.