Skip to content

Commit

Permalink
Merge branch 'pm-assorted'
Browse files Browse the repository at this point in the history
* pm-assorted:
  PM / Sleep: Warn about system time after resume with pm_trace
  • Loading branch information
Rafael J. Wysocki committed Jun 29, 2013
2 parents 5c0b1b2 + 9dceefe commit 867a420
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions kernel/power/main.c
Original file line number Diff line number Diff line change
Expand Up @@ -530,6 +530,10 @@ pm_trace_store(struct kobject *kobj, struct kobj_attribute *attr,

if (sscanf(buf, "%d", &val) == 1) {
pm_trace_enabled = !!val;
if (pm_trace_enabled) {
pr_warn("PM: Enabling pm_trace changes system date and time during resume.\n"
"PM: Correct system time has to be restored manually after resume.\n");
}
return n;
}
return -EINVAL;
Expand Down

0 comments on commit 867a420

Please sign in to comment.