Skip to content

Commit

Permalink
Merge branches 'pm-cpufreq' and 'pm-sleep'
Browse files Browse the repository at this point in the history
* pm-cpufreq:
  cpufreq: intel_pstate: Only mention the BIOS disabling turbo mode once

* pm-sleep:
  PM: hibernate: Freeze kernel threads in software_resume()
  • Loading branch information
Rafael J. Wysocki committed May 2, 2020
3 parents a9b760b + 8c53977 + 2351f8d commit a538399
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 1 deletion.
2 changes: 1 addition & 1 deletion drivers/cpufreq/intel_pstate.c
Original file line number Diff line number Diff line change
Expand Up @@ -1059,7 +1059,7 @@ static ssize_t store_no_turbo(struct kobject *a, struct kobj_attribute *b,

update_turbo_state();
if (global.turbo_disabled) {
pr_warn("Turbo disabled by BIOS or unavailable on processor\n");
pr_notice_once("Turbo disabled by BIOS or unavailable on processor\n");
mutex_unlock(&intel_pstate_limits_lock);
mutex_unlock(&intel_pstate_driver_lock);
return -EPERM;
Expand Down
7 changes: 7 additions & 0 deletions kernel/power/hibernate.c
Original file line number Diff line number Diff line change
Expand Up @@ -898,6 +898,13 @@ static int software_resume(void)
error = freeze_processes();
if (error)
goto Close_Finish;

error = freeze_kernel_threads();
if (error) {
thaw_processes();
goto Close_Finish;
}

error = load_image_and_restore();
thaw_processes();
Finish:
Expand Down

0 comments on commit a538399

Please sign in to comment.