Skip to content

Commit 6257e70

Browse files
vireshkIngo Molnar
authored andcommitted
sched/cpufreq: Initialize sg_cpu->flags to 0
Initializing sg_cpu->flags to SCHED_CPUFREQ_RT has no obvious benefit. The flags field wouldn't be used until the utilization update handler is called for the first time, and once that is called we will overwrite flags anyway. Initialize it to 0. Signed-off-by: Viresh Kumar <[email protected]> Signed-off-by: Peter Zijlstra (Intel) <[email protected]> Reviewed-by: Juri Lelli <[email protected]> Cc: Linus Torvalds <[email protected]> Cc: Peter Zijlstra <[email protected]> Cc: Rafael Wysocki <[email protected]> Cc: Thomas Gleixner <[email protected]> Cc: Vincent Guittot <[email protected]> Cc: [email protected] Cc: [email protected] Cc: [email protected] Cc: [email protected] Link: http://lkml.kernel.org/r/763feda6424ced8486b25a0c52979634e6104478.1513158452.git.viresh.kumar@linaro.org Signed-off-by: Ingo Molnar <[email protected]>
1 parent f453ae2 commit 6257e70

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

kernel/sched/cpufreq_schedutil.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -655,7 +655,7 @@ static int sugov_start(struct cpufreq_policy *policy)
655655
memset(sg_cpu, 0, sizeof(*sg_cpu));
656656
sg_cpu->cpu = cpu;
657657
sg_cpu->sg_policy = sg_policy;
658-
sg_cpu->flags = SCHED_CPUFREQ_RT;
658+
sg_cpu->flags = 0;
659659
sg_cpu->iowait_boost_max = policy->cpuinfo.max_freq;
660660
}
661661

0 commit comments

Comments
 (0)