Skip to content

Commit 6cc3d0e

Browse files
Mian Yousaf Kaukabvireshk
authored andcommitted
cpufreq: tegra186: add CPUFREQ_NEED_INITIAL_FREQ_CHECK flag
The driver doesn't provide ->get() method to read current frequency and the frequency is set to 0 at initialization which makes the driver fail at initialization time. Set the CPUFREQ_NEED_INITIAL_FREQ_CHECK flag for the driver, so the cpufreq core checks for the unlisted frequency and sets the CPU to a valid frequency from the frequency table. Signed-off-by: Mian Yousaf Kaukab <[email protected]> [ Viresh: Massaged change log ] Signed-off-by: Viresh Kumar <[email protected]>
1 parent 1f1755a commit 6cc3d0e

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

drivers/cpufreq/tegra186-cpufreq.c

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -93,7 +93,8 @@ static int tegra186_cpufreq_set_target(struct cpufreq_policy *policy,
9393

9494
static struct cpufreq_driver tegra186_cpufreq_driver = {
9595
.name = "tegra186",
96-
.flags = CPUFREQ_STICKY | CPUFREQ_HAVE_GOVERNOR_PER_POLICY,
96+
.flags = CPUFREQ_STICKY | CPUFREQ_HAVE_GOVERNOR_PER_POLICY |
97+
CPUFREQ_NEED_INITIAL_FREQ_CHECK,
9798
.verify = cpufreq_generic_frequency_table_verify,
9899
.target_index = tegra186_cpufreq_set_target,
99100
.init = tegra186_cpufreq_init,

0 commit comments

Comments
 (0)