Skip to content

Commit 5a8d281

Browse files
committed
Merge branch 'pm-fixes'
* pm-fixes: cpufreq: Revert commit 2f7021a to fix CPU hotplug regression cpufreq: s3c24xx: fix "depends on ARM_S3C24XX" in Kconfig cpufreq: s3c24xx: rename CONFIG_CPU_FREQ_S3C24XX_DEBUGFS PM / Sleep: Fix comment typo in pm_wakeup.h PM / Sleep: avoid 'autosleep' in shutdown progress cpufreq: Revert commit a66b2e to fix suspend/resume regression
2 parents fc0ad6c + e8d0527 commit 5a8d281

File tree

7 files changed

+12
-14
lines changed

7 files changed

+12
-14
lines changed

arch/arm/mach-s3c24xx/Kconfig

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -208,7 +208,7 @@ config S3C24XX_GPIO_EXTRA128
208208

209209
config S3C24XX_PLL
210210
bool "Support CPUfreq changing of PLL frequency (EXPERIMENTAL)"
211-
depends on ARM_S3C24XX
211+
depends on ARM_S3C24XX_CPUFREQ
212212
help
213213
Compile in support for changing the PLL frequency from the
214214
S3C24XX series CPUfreq driver. The PLL takes time to settle

drivers/cpufreq/cpufreq.c

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1942,13 +1942,15 @@ static int __cpuinit cpufreq_cpu_callback(struct notifier_block *nfb,
19421942
if (dev) {
19431943
switch (action) {
19441944
case CPU_ONLINE:
1945+
case CPU_ONLINE_FROZEN:
19451946
cpufreq_add_dev(dev, NULL);
19461947
break;
19471948
case CPU_DOWN_PREPARE:
1948-
case CPU_UP_CANCELED_FROZEN:
1949+
case CPU_DOWN_PREPARE_FROZEN:
19491950
__cpufreq_remove_dev(dev, NULL);
19501951
break;
19511952
case CPU_DOWN_FAILED:
1953+
case CPU_DOWN_FAILED_FROZEN:
19521954
cpufreq_add_dev(dev, NULL);
19531955
break;
19541956
}

drivers/cpufreq/cpufreq_governor.c

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,6 @@
2525
#include <linux/slab.h>
2626
#include <linux/types.h>
2727
#include <linux/workqueue.h>
28-
#include <linux/cpu.h>
2928

3029
#include "cpufreq_governor.h"
3130

@@ -137,10 +136,8 @@ void gov_queue_work(struct dbs_data *dbs_data, struct cpufreq_policy *policy,
137136
if (!all_cpus) {
138137
__gov_queue_work(smp_processor_id(), dbs_data, delay);
139138
} else {
140-
get_online_cpus();
141139
for_each_cpu(i, policy->cpus)
142140
__gov_queue_work(i, dbs_data, delay);
143-
put_online_cpus();
144141
}
145142
}
146143
EXPORT_SYMBOL_GPL(gov_queue_work);

drivers/cpufreq/cpufreq_stats.c

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -353,13 +353,11 @@ static int __cpuinit cpufreq_stat_cpu_callback(struct notifier_block *nfb,
353353
cpufreq_update_policy(cpu);
354354
break;
355355
case CPU_DOWN_PREPARE:
356+
case CPU_DOWN_PREPARE_FROZEN:
356357
cpufreq_stats_free_sysfs(cpu);
357358
break;
358359
case CPU_DEAD:
359-
cpufreq_stats_free_table(cpu);
360-
break;
361-
case CPU_UP_CANCELED_FROZEN:
362-
cpufreq_stats_free_sysfs(cpu);
360+
case CPU_DEAD_FROZEN:
363361
cpufreq_stats_free_table(cpu);
364362
break;
365363
}

drivers/cpufreq/s3c24xx-cpufreq.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,7 @@ static struct clk *clk_hclk;
4949
static struct clk *clk_pclk;
5050
static struct clk *clk_arm;
5151

52-
#ifdef CONFIG_CPU_FREQ_S3C24XX_DEBUGFS
52+
#ifdef CONFIG_ARM_S3C24XX_CPUFREQ_DEBUGFS
5353
struct s3c_cpufreq_config *s3c_cpufreq_getconfig(void)
5454
{
5555
return &cpu_cur;
@@ -59,7 +59,7 @@ struct s3c_iotimings *s3c_cpufreq_getiotimings(void)
5959
{
6060
return &s3c24xx_iotiming;
6161
}
62-
#endif /* CONFIG_CPU_FREQ_S3C24XX_DEBUGFS */
62+
#endif /* CONFIG_ARM_S3C24XX_CPUFREQ_DEBUGFS */
6363

6464
static void s3c_cpufreq_getcur(struct s3c_cpufreq_config *cfg)
6565
{

include/linux/pm_wakeup.h

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -36,8 +36,8 @@
3636
* @last_time: Monotonic clock when the wakeup source's was touched last time.
3737
* @prevent_sleep_time: Total time this source has been preventing autosleep.
3838
* @event_count: Number of signaled wakeup events.
39-
* @active_count: Number of times the wakeup sorce was activated.
40-
* @relax_count: Number of times the wakeup sorce was deactivated.
39+
* @active_count: Number of times the wakeup source was activated.
40+
* @relax_count: Number of times the wakeup source was deactivated.
4141
* @expire_count: Number of times the wakeup source's timeout has expired.
4242
* @wakeup_count: Number of times the wakeup source might abort suspend.
4343
* @active: Status of the wakeup source.

kernel/power/autosleep.c

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,8 @@ static void try_to_suspend(struct work_struct *work)
3232

3333
mutex_lock(&autosleep_lock);
3434

35-
if (!pm_save_wakeup_count(initial_count)) {
35+
if (!pm_save_wakeup_count(initial_count) ||
36+
system_state != SYSTEM_RUNNING) {
3637
mutex_unlock(&autosleep_lock);
3738
goto out;
3839
}

0 commit comments

Comments
 (0)