diff options
| author | Rafael J. Wysocki <rafael.j.wysocki@intel.com> | 2013-06-28 07:01:34 -0400 |
|---|---|---|
| committer | Rafael J. Wysocki <rafael.j.wysocki@intel.com> | 2013-06-28 07:01:34 -0400 |
| commit | 405a1086bdd091d2d55db0ac905cd6332b35cec1 (patch) | |
| tree | 5e7e2d38278da0bb52e9d8b987c7d0af22a8c9ed | |
| parent | 52388492ea7046888156ed2756fbba390b18c01e (diff) | |
| parent | e11158c0c9ab59d46bb70953f6275643a7a01fa1 (diff) | |
Merge branch 'pm-cpufreq'
* pm-cpufreq: (41 commits)
cpufreq: tegra: call CPUFREQ_POSTCHANGE notfier in error cases
cpufreq: s3c64xx: call CPUFREQ_POSTCHANGE notfier in error cases
cpufreq: omap: call CPUFREQ_POSTCHANGE notfier in error cases
cpufreq: imx6q: call CPUFREQ_POSTCHANGE notfier in error cases
cpufreq: exynos: call CPUFREQ_POSTCHANGE notfier in error cases
cpufreq: dbx500: call CPUFREQ_POSTCHANGE notfier in error cases
cpufreq: davinci: call CPUFREQ_POSTCHANGE notfier in error cases
cpufreq: arm-big-little: call CPUFREQ_POSTCHANGE notfier in error cases
cpufreq: powernow-k8: call CPUFREQ_POSTCHANGE notfier in error cases
cpufreq: pcc: call CPUFREQ_POSTCHANGE notfier in error cases
cpufreq: e_powersaver: call CPUFREQ_POSTCHANGE notfier in error cases
cpufreq: ACPI: call CPUFREQ_POSTCHANGE notfier in error cases
cpufreq: s3c2416: fix forgotten driver_data conversions
cpufreq: make __cpufreq_notify_transition() static
cpufreq: Fix minor formatting issues
cpufreq: Fix governor start/stop race condition
cpufreq: Simplify userspace governor
cpufreq: X86_AMD_FREQ_SENSITIVITY: select CPU_FREQ_TABLE
cpufreq: tegra: create CONFIG_ARM_TEGRA_CPUFREQ
cpufreq: S3C2416/S3C64XX: select CPU_FREQ_TABLE
...
67 files changed, 928 insertions, 542 deletions
diff --git a/Documentation/cpu-freq/cpu-drivers.txt b/Documentation/cpu-freq/cpu-drivers.txt index a3585eac83b6..19fa98e07bf7 100644 --- a/Documentation/cpu-freq/cpu-drivers.txt +++ b/Documentation/cpu-freq/cpu-drivers.txt | |||
| @@ -186,7 +186,7 @@ As most cpufreq processors only allow for being set to a few specific | |||
| 186 | frequencies, a "frequency table" with some functions might assist in | 186 | frequencies, a "frequency table" with some functions might assist in |
| 187 | some work of the processor driver. Such a "frequency table" consists | 187 | some work of the processor driver. Such a "frequency table" consists |
| 188 | of an array of struct cpufreq_frequency_table entries, with any value in | 188 | of an array of struct cpufreq_frequency_table entries, with any value in |
| 189 | "index" you want to use, and the corresponding frequency in | 189 | "driver_data" you want to use, and the corresponding frequency in |
| 190 | "frequency". At the end of the table, you need to add a | 190 | "frequency". At the end of the table, you need to add a |
| 191 | cpufreq_frequency_table entry with frequency set to CPUFREQ_TABLE_END. And | 191 | cpufreq_frequency_table entry with frequency set to CPUFREQ_TABLE_END. And |
| 192 | if you want to skip one entry in the table, set the frequency to | 192 | if you want to skip one entry in the table, set the frequency to |
| @@ -214,10 +214,4 @@ int cpufreq_frequency_table_target(struct cpufreq_policy *policy, | |||
| 214 | is the corresponding frequency table helper for the ->target | 214 | is the corresponding frequency table helper for the ->target |
| 215 | stage. Just pass the values to this function, and the unsigned int | 215 | stage. Just pass the values to this function, and the unsigned int |
| 216 | index returns the number of the frequency table entry which contains | 216 | index returns the number of the frequency table entry which contains |
| 217 | the frequency the CPU shall be set to. PLEASE NOTE: This is not the | 217 | the frequency the CPU shall be set to. |
| 218 | "index" which is in this cpufreq_table_entry.index, but instead | ||
| 219 | cpufreq_table[index]. So, the new frequency is | ||
| 220 | cpufreq_table[index].frequency, and the value you stored into the | ||
| 221 | frequency table "index" field is | ||
| 222 | cpufreq_table[index].index. | ||
| 223 | |||
diff --git a/MAINTAINERS b/MAINTAINERS index ac6c8994714c..04a5fef84415 100644 --- a/MAINTAINERS +++ b/MAINTAINERS | |||
| @@ -2218,7 +2218,8 @@ M: Viresh Kumar <viresh.kumar@linaro.org> | |||
| 2218 | L: cpufreq@vger.kernel.org | 2218 | L: cpufreq@vger.kernel.org |
| 2219 | L: linux-pm@vger.kernel.org | 2219 | L: linux-pm@vger.kernel.org |
| 2220 | S: Maintained | 2220 | S: Maintained |
| 2221 | T: git://git.kernel.org/pub/scm/linux/kernel/git/rafael/linux-pm.git | 2221 | T: git git://git.kernel.org/pub/scm/linux/kernel/git/rafael/linux-pm.git |
| 2222 | T: git git://git.linaro.org/people/vireshk/linux.git (For ARM Updates) | ||
| 2222 | F: drivers/cpufreq/ | 2223 | F: drivers/cpufreq/ |
| 2223 | F: include/linux/cpufreq.h | 2224 | F: include/linux/cpufreq.h |
| 2224 | 2225 | ||
diff --git a/arch/arm/mach-davinci/Kconfig b/arch/arm/mach-davinci/Kconfig index a075b3e0c5c7..e026b19b23ea 100644 --- a/arch/arm/mach-davinci/Kconfig +++ b/arch/arm/mach-davinci/Kconfig | |||
| @@ -40,6 +40,7 @@ config ARCH_DAVINCI_DA850 | |||
| 40 | bool "DA850/OMAP-L138/AM18x based system" | 40 | bool "DA850/OMAP-L138/AM18x based system" |
| 41 | select ARCH_DAVINCI_DA8XX | 41 | select ARCH_DAVINCI_DA8XX |
| 42 | select ARCH_HAS_CPUFREQ | 42 | select ARCH_HAS_CPUFREQ |
| 43 | select CPU_FREQ_TABLE | ||
| 43 | select CP_INTC | 44 | select CP_INTC |
| 44 | 45 | ||
| 45 | config ARCH_DAVINCI_DA8XX | 46 | config ARCH_DAVINCI_DA8XX |
diff --git a/arch/arm/mach-davinci/da850.c b/arch/arm/mach-davinci/da850.c index 4d6933848abf..a0d4f6038b60 100644 --- a/arch/arm/mach-davinci/da850.c +++ b/arch/arm/mach-davinci/da850.c | |||
| @@ -1004,7 +1004,7 @@ static const struct da850_opp da850_opp_96 = { | |||
| 1004 | 1004 | ||
| 1005 | #define OPP(freq) \ | 1005 | #define OPP(freq) \ |
| 1006 | { \ | 1006 | { \ |
| 1007 | .index = (unsigned int) &da850_opp_##freq, \ | 1007 | .driver_data = (unsigned int) &da850_opp_##freq, \ |
| 1008 | .frequency = freq * 1000, \ | 1008 | .frequency = freq * 1000, \ |
| 1009 | } | 1009 | } |
| 1010 | 1010 | ||
| @@ -1016,7 +1016,7 @@ static struct cpufreq_frequency_table da850_freq_table[] = { | |||
| 1016 | OPP(200), | 1016 | OPP(200), |
| 1017 | OPP(96), | 1017 | OPP(96), |
| 1018 | { | 1018 | { |
| 1019 | .index = 0, | 1019 | .driver_data = 0, |
| 1020 | .frequency = CPUFREQ_TABLE_END, | 1020 | .frequency = CPUFREQ_TABLE_END, |
| 1021 | }, | 1021 | }, |
| 1022 | }; | 1022 | }; |
