diff options
author | Rafael J. Wysocki <rafael.j.wysocki@intel.com> | 2016-12-22 08:34:55 -0500 |
---|---|---|
committer | Rafael J. Wysocki <rafael.j.wysocki@intel.com> | 2016-12-22 08:34:55 -0500 |
commit | 7b99f1aeed37196ad54099c30c2f154a7d6e91e0 (patch) | |
tree | 6c19dc46f3157e9988ab9bb65acade116801babc | |
parent | 7ae123edd37a47e178eb9a6631fe4a7108262c10 (diff) | |
parent | adec57c61c2421d9d06c1fa8dd1ff7ed4fd2ca1b (diff) |
Merge branch 'pm-cpufreq'
* pm-cpufreq:
cpufreq: s3c64xx: remove incorrect __init annotation
cpufreq: Remove CPU hotplug callbacks only if they were initialized
CPU/hotplug: Clarify description of __cpuhp_setup_state() return value
-rw-r--r-- | drivers/cpufreq/acpi-cpufreq.c | 2 | ||||
-rw-r--r-- | drivers/cpufreq/s3c64xx-cpufreq.c | 2 | ||||
-rw-r--r-- | kernel/cpu.c | 6 |
3 files changed, 7 insertions, 3 deletions
diff --git a/drivers/cpufreq/acpi-cpufreq.c b/drivers/cpufreq/acpi-cpufreq.c index 3a98702b7445..3a2ca0f79daf 100644 --- a/drivers/cpufreq/acpi-cpufreq.c +++ b/drivers/cpufreq/acpi-cpufreq.c | |||
@@ -930,7 +930,7 @@ static void __init acpi_cpufreq_boost_init(void) | |||
930 | 930 | ||
931 | static void acpi_cpufreq_boost_exit(void) | 931 | static void acpi_cpufreq_boost_exit(void) |
932 | { | 932 | { |
933 | if (acpi_cpufreq_online >= 0) | 933 | if (acpi_cpufreq_online > 0) |
934 | cpuhp_remove_state_nocalls(acpi_cpufreq_online); | 934 | cpuhp_remove_state_nocalls(acpi_cpufreq_online); |
935 | } | 935 | } |
936 | 936 | ||
diff --git a/drivers/cpufreq/s3c64xx-cpufreq.c b/drivers/cpufreq/s3c64xx-cpufreq.c index 176e84cc3991..0cb9040eca49 100644 --- a/drivers/cpufreq/s3c64xx-cpufreq.c +++ b/drivers/cpufreq/s3c64xx-cpufreq.c | |||
@@ -107,7 +107,7 @@ static int s3c64xx_cpufreq_set_target(struct cpufreq_policy *policy, | |||
107 | } | 107 | } |
108 | 108 | ||
109 | #ifdef CONFIG_REGULATOR | 109 | #ifdef CONFIG_REGULATOR |
110 | static void __init s3c64xx_cpufreq_config_regulator(void) | 110 | static void s3c64xx_cpufreq_config_regulator(void) |
111 | { | 111 | { |
112 | int count, v, i, found; | 112 | int count, v, i, found; |
113 | struct cpufreq_frequency_table *freq; | 113 | struct cpufreq_frequency_table *freq; |
diff --git a/kernel/cpu.c b/kernel/cpu.c index 217fd2e7f435..5339aca811d2 100644 --- a/kernel/cpu.c +++ b/kernel/cpu.c | |||
@@ -1586,7 +1586,11 @@ EXPORT_SYMBOL_GPL(__cpuhp_state_add_instance); | |||
1586 | * @startup: startup callback function | 1586 | * @startup: startup callback function |
1587 | * @teardown: teardown callback function | 1587 | * @teardown: teardown callback function |
1588 | * | 1588 | * |
1589 | * Returns 0 if successful, otherwise a proper error code | 1589 | * Returns: |
1590 | * On success: | ||
1591 | * Positive state number if @state is CPUHP_AP_ONLINE_DYN | ||
1592 | * 0 for all other states | ||
1593 | * On failure: proper (negative) error code | ||
1590 | */ | 1594 | */ |
1591 | int __cpuhp_setup_state(enum cpuhp_state state, | 1595 | int __cpuhp_setup_state(enum cpuhp_state state, |
1592 | const char *name, bool invoke, | 1596 | const char *name, bool invoke, |