diff options
author | Viresh Kumar <viresh.kumar@linaro.org> | 2014-03-28 09:41:47 -0400 |
---|---|---|
committer | Rafael J. Wysocki <rafael.j.wysocki@intel.com> | 2014-04-07 08:43:50 -0400 |
commit | 7f4b04614a273089ad65654f53771c033fadc65e (patch) | |
tree | ba06b3522475bf7fcd79d85b90180d384d75bcc6 /drivers/cpufreq/exynos5250-cpufreq.c | |
parent | 71508a1f4f2286eea728a5994f1fb14b77340b47 (diff) |
cpufreq: create another field .flags in cpufreq_frequency_table
Currently cpufreq frequency table has two fields: frequency and driver_data.
driver_data is only for drivers' internal use and cpufreq core shouldn't use
it at all. But with the introduction of BOOST frequencies, this assumption
was broken and we started using it as a flag instead.
There are two problems due to this:
- It is against the description of this field, as driver's data is used by
the core now.
- if drivers fill it with -3 for any frequency, then those frequencies are
never considered by cpufreq core as it is exactly same as value of
CPUFREQ_BOOST_FREQ, i.e. ~2.
The best way to get this fixed is by creating another field flags which
will be used for such flags. This patch does that. Along with that various
drivers need modifications due to the change of struct cpufreq_frequency_table.
Reviewed-by: Gautham R Shenoy <ego@linux.vnet.ibm.com>
Signed-off-by: Viresh Kumar <viresh.kumar@linaro.org>
Signed-off-by: Rafael J. Wysocki <rafael.j.wysocki@intel.com>
Diffstat (limited to 'drivers/cpufreq/exynos5250-cpufreq.c')
-rw-r--r-- | drivers/cpufreq/exynos5250-cpufreq.c | 34 |
1 files changed, 17 insertions, 17 deletions
diff --git a/drivers/cpufreq/exynos5250-cpufreq.c b/drivers/cpufreq/exynos5250-cpufreq.c index 5f90b82a4082..363a0b3fe1b1 100644 --- a/drivers/cpufreq/exynos5250-cpufreq.c +++ b/drivers/cpufreq/exynos5250-cpufreq.c | |||
@@ -34,23 +34,23 @@ static unsigned int exynos5250_volt_table[] = { | |||
34 | }; | 34 | }; |
35 | 35 | ||
36 | static struct cpufreq_frequency_table exynos5250_freq_table[] = { | 36 | static struct cpufreq_frequency_table exynos5250_freq_table[] = { |
37 | {L0, 1700 * 1000}, | 37 | {0, L0, 1700 * 1000}, |
38 | {L1, 1600 * 1000}, | 38 | {0, L1, 1600 * 1000}, |
39 | {L2, 1500 * 1000}, | 39 | {0, L2, 1500 * 1000}, |
40 | {L3, 1400 * 1000}, | 40 | {0, L3, 1400 * 1000}, |
41 | {L4, 1300 * 1000}, | 41 | {0, L4, 1300 * 1000}, |
42 | {L5, 1200 * 1000}, | 42 | {0, L5, 1200 * 1000}, |
43 | {L6, 1100 * 1000}, | 43 | {0, L6, 1100 * 1000}, |
44 | {L7, 1000 * 1000}, | 44 | {0, L7, 1000 * 1000}, |
45 | {L8, 900 * 1000}, | 45 | {0, L8, 900 * 1000}, |
46 | {L9, 800 * 1000}, | 46 | {0, L9, 800 * 1000}, |
47 | {L10, 700 * 1000}, | 47 | {0, L10, 700 * 1000}, |
48 | {L11, 600 * 1000}, | 48 | {0, L11, 600 * 1000}, |
49 | {L12, 500 * 1000}, | 49 | {0, L12, 500 * 1000}, |
50 | {L13, 400 * 1000}, | 50 | {0, L13, 400 * 1000}, |
51 | {L14, 300 * 1000}, | 51 | {0, L14, 300 * 1000}, |
52 | {L15, 200 * 1000}, | 52 | {0, L15, 200 * 1000}, |
53 | {0, CPUFREQ_TABLE_END}, | 53 | {0, 0, CPUFREQ_TABLE_END}, |
54 | }; | 54 | }; |
55 | 55 | ||
56 | static struct apll_freq apll_freq_5250[] = { | 56 | static struct apll_freq apll_freq_5250[] = { |