Skip to content

Commit a538399

Browse files
committed
Merge branches 'pm-cpufreq' and 'pm-sleep'
* pm-cpufreq: cpufreq: intel_pstate: Only mention the BIOS disabling turbo mode once * pm-sleep: PM: hibernate: Freeze kernel threads in software_resume()
3 parents a9b760b + 8c53977 + 2351f8d commit a538399

File tree

2 files changed

+8
-1
lines changed

2 files changed

+8
-1
lines changed

drivers/cpufreq/intel_pstate.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1059,7 +1059,7 @@ static ssize_t store_no_turbo(struct kobject *a, struct kobj_attribute *b,
10591059

10601060
update_turbo_state();
10611061
if (global.turbo_disabled) {
1062-
pr_warn("Turbo disabled by BIOS or unavailable on processor\n");
1062+
pr_notice_once("Turbo disabled by BIOS or unavailable on processor\n");
10631063
mutex_unlock(&intel_pstate_limits_lock);
10641064
mutex_unlock(&intel_pstate_driver_lock);
10651065
return -EPERM;

kernel/power/hibernate.c

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -898,6 +898,13 @@ static int software_resume(void)
898898
error = freeze_processes();
899899
if (error)
900900
goto Close_Finish;
901+
902+
error = freeze_kernel_threads();
903+
if (error) {
904+
thaw_processes();
905+
goto Close_Finish;
906+
}
907+
901908
error = load_image_and_restore();
902909
thaw_processes();
903910
Finish:

0 commit comments

Comments
 (0)