File tree Expand file tree Collapse file tree 2 files changed +6
-1
lines changed Expand file tree Collapse file tree 2 files changed +6
-1
lines changed Original file line number Diff line number Diff line change @@ -572,7 +572,7 @@ static int min_perf_pct_min(void)
572
572
int turbo_pstate = cpu -> pstate .turbo_pstate ;
573
573
574
574
return turbo_pstate ?
575
- DIV_ROUND_UP (cpu -> pstate .min_pstate * 100 , turbo_pstate ) : 0 ;
575
+ (cpu -> pstate .min_pstate * 100 / turbo_pstate ) : 0 ;
576
576
}
577
577
578
578
static s16 intel_pstate_get_epb (struct cpudata * cpu_data )
Original file line number Diff line number Diff line change @@ -610,6 +610,11 @@ static int sugov_start(struct cpufreq_policy *policy)
610
610
sg_cpu -> sg_policy = sg_policy ;
611
611
sg_cpu -> flags = SCHED_CPUFREQ_RT ;
612
612
sg_cpu -> iowait_boost_max = policy -> cpuinfo .max_freq ;
613
+ }
614
+
615
+ for_each_cpu (cpu , policy -> cpus ) {
616
+ struct sugov_cpu * sg_cpu = & per_cpu (sugov_cpu , cpu );
617
+
613
618
cpufreq_add_update_util_hook (cpu , & sg_cpu -> update_util ,
614
619
policy_is_shared (policy ) ?
615
620
sugov_update_shared :
You can’t perform that action at this time.
0 commit comments