From 5ead22b31f45645e12d3c7ad7fd10ce20bfb6925 Mon Sep 17 00:00:00 2001 From: Panchajanya1999 Date: Tue, 18 Feb 2020 18:02:43 +0530 Subject: [PATCH] schedutil: Avoid dumb priority calculation Why again calculating sched priority while it is already defined before? Change-Id: Idf089f156d3c509f625c744b1f5e4cc50a650078 Signed-off-by: Panchajanya1999 (cherry picked from commit d243e7829d8614504b721a257da4e9cb49aa2399) Signed-off-by: txexcalibur --- kernel/sched/cpufreq_schedutil.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/kernel/sched/cpufreq_schedutil.c b/kernel/sched/cpufreq_schedutil.c index 3b8f529d39cb..4851e0389a2a 100644 --- a/kernel/sched/cpufreq_schedutil.c +++ b/kernel/sched/cpufreq_schedutil.c @@ -885,7 +885,7 @@ static void sugov_policy_free(struct sugov_policy *sg_policy) static int sugov_kthread_create(struct sugov_policy *sg_policy) { struct task_struct *thread; - struct sched_param param = { .sched_priority = MAX_USER_RT_PRIO / 2 }; + struct sched_param param = { .sched_priority = SUGOV_KTHREAD_PRIORITY }; struct cpufreq_policy *policy = sg_policy->policy; int ret;