OpenWrt – Diff between revs 2 and 3
?pathlinks?
Rev 2 | Rev 3 | |||
---|---|---|---|---|
Line 26... | Line 26... | |||
26 | drivers/cpufreq/cpufreq-dt.h | 6 ++++++ |
26 | drivers/cpufreq/cpufreq-dt.h | 6 ++++++ |
|
27 | 2 files changed, 12 insertions(+), 1 deletion(-) |
27 | 2 files changed, 12 insertions(+), 1 deletion(-) |
|
Line 28... | Line 28... | |||
28 | |
28 | |
|
29 | --- a/drivers/cpufreq/cpufreq-dt.c |
29 | --- a/drivers/cpufreq/cpufreq-dt.c |
|
30 | +++ b/drivers/cpufreq/cpufreq-dt.c |
30 | +++ b/drivers/cpufreq/cpufreq-dt.c |
|
31 | @@ -231,7 +231,10 @@ static int cpufreq_init(struct cpufreq_p |
31 | @@ -220,7 +220,10 @@ static int cpufreq_init(struct cpufreq_p |
|
Line 32... | Line 32... | |||
32 | } |
32 | } |
|
33 | |
33 | |
|
34 | if (fallback) { |
34 | if (fallback) { |
|
Line 38... | Line 38... | |||
38 | + if (!pd || !pd->independent_clocks) |
38 | + if (!pd || !pd->independent_clocks) |
|
39 | + cpumask_setall(policy->cpus); |
39 | + cpumask_setall(policy->cpus); |
|
Line 40... | Line 40... | |||
40 | |
40 | |
|
41 | /* |
41 | /* |
|
42 | * OPP tables are initialized only for policy->cpu, do it for |
42 | * OPP tables are initialized only for policy->cpu, do it for |
|
43 | @@ -376,6 +379,8 @@ static int dt_cpufreq_probe(struct platf |
43 | @@ -372,6 +375,8 @@ static int dt_cpufreq_probe(struct platf |
|
44 | if (data && data->have_governor_per_policy) |
44 | if (data && data->have_governor_per_policy) |
|
Line 45... | Line 45... | |||
45 | dt_cpufreq_driver.flags |= CPUFREQ_HAVE_GOVERNOR_PER_POLICY; |
45 | dt_cpufreq_driver.flags |= CPUFREQ_HAVE_GOVERNOR_PER_POLICY; |
|
46 | |
46 | |