Skip to content

Commit

Permalink
schedutil: Avoid dumb priority calculation
Browse files Browse the repository at this point in the history
Why again calculating sched priority while it is already defined before?

Change-Id: Idf089f156d3c509f625c744b1f5e4cc50a650078
Signed-off-by: Panchajanya1999 <panchajanya@azure-dev.live>
(cherry picked from commit d243e7829d8614504b721a257da4e9cb49aa2399)
Signed-off-by: txexcalibur <txexcalibur69@gmail.com>
Panchajanya1999 authored and txexcalibur committed Jul 18, 2024
1 parent 0a6afa6 commit 5ead22b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion kernel/sched/cpufreq_schedutil.c
Original file line number Diff line number Diff line change
@@ -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;

0 comments on commit 5ead22b

Please sign in to comment.