Skip to content
This repository has been archived by the owner on Oct 28, 2022. It is now read-only.

Commit

Permalink
cpu_input_boost: add prime core support
Browse files Browse the repository at this point in the history
Separate it from perf cluster and do not boost it at all.

Signed-off-by: Yaroslav Furman <[email protected]>
  • Loading branch information
YaroST12 committed May 14, 2020
1 parent 1779a2f commit 042fbcf
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions drivers/cpufreq/cpu_input_boost.c
Original file line number Diff line number Diff line change
Expand Up @@ -51,8 +51,10 @@ static unsigned int get_input_boost_freq(struct cpufreq_policy *policy)

if (cpumask_test_cpu(policy->cpu, cpu_lp_mask))
freq = max(CONFIG_INPUT_BOOST_FREQ_LP, CONFIG_MIN_FREQ_LP);
else
else if (cpumask_test_cpu(policy->cpu, cpu_perf_mask))
freq = max(CONFIG_INPUT_BOOST_FREQ_PERF, CONFIG_MIN_FREQ_PERF);
else
freq = policy->min;

return min(freq, policy->max);
}
Expand Down Expand Up @@ -212,8 +214,10 @@ static int cpu_notifier_cb(struct notifier_block *nb, unsigned long action,
policy->min = get_input_boost_freq(policy);
else if (cpumask_test_cpu(policy->cpu, cpu_lp_mask))
policy->min = CONFIG_MIN_FREQ_LP;
else
else if (cpumask_test_cpu(policy->cpu, cpu_perf_mask))
policy->min = CONFIG_MIN_FREQ_PERF;
else
policy->min = policy->cpuinfo.min_freq;

return NOTIFY_OK;
}
Expand Down

0 comments on commit 042fbcf

Please sign in to comment.