We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 71630b7 + d62d813 commit e029b9bCopy full SHA for e029b9b
kernel/sched/cpufreq_schedutil.c
@@ -649,6 +649,7 @@ static int sugov_start(struct cpufreq_policy *policy)
649
struct sugov_cpu *sg_cpu = &per_cpu(sugov_cpu, cpu);
650
651
memset(sg_cpu, 0, sizeof(*sg_cpu));
652
+ sg_cpu->cpu = cpu;
653
sg_cpu->sg_policy = sg_policy;
654
sg_cpu->flags = SCHED_CPUFREQ_RT;
655
sg_cpu->iowait_boost_max = policy->cpuinfo.max_freq;
@@ -714,11 +715,6 @@ struct cpufreq_governor *cpufreq_default_governor(void)
714
715
716
static int __init sugov_register(void)
717
{
- int cpu;
718
-
719
- for_each_possible_cpu(cpu)
720
- per_cpu(sugov_cpu, cpu).cpu = cpu;
721
722
return cpufreq_register_governor(&schedutil_gov);
723
}
724
fs_initcall(sugov_register);
0 commit comments