Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > linux.kernel > #1690511 > unrolled thread
| Started by | Mark Salyzyn <salyzyn@android.com> |
|---|---|
| First post | 2017-07-18 19:30 +0200 |
| Last post | 2017-07-19 01:30 +0200 |
| Articles | 3 — 2 participants |
Back to article view | Back to linux.kernel
[PATCH 3/4] PM: Print wall time at suspend entry and exit Mark Salyzyn <salyzyn@android.com> - 2017-07-18 19:30 +0200
Re: [PATCH 3/4] PM: Print wall time at suspend entry and exit "Rafael J. Wysocki" <rjw@rjwysocki.net> - 2017-07-19 00:40 +0200
Re: [PATCH 3/4] PM: Print wall time at suspend entry and exit Mark Salyzyn <salyzyn@android.com> - 2017-07-19 01:30 +0200
| From | Mark Salyzyn <salyzyn@android.com> |
|---|---|
| Date | 2017-07-18 19:30 +0200 |
| Subject | [PATCH 3/4] PM: Print wall time at suspend entry and exit |
| Message-ID | <u4EtQ-5hK-13@gated-at.bofh.it> |
Permits power state and battery life diagnosis.
Feature activated by CONFIG_RTC_SHOW_TIME.
Signed-off-by: Mark Salyzyn <salyzyn@android.com>
---
kernel/power/suspend.c | 3 +++
1 file changed, 3 insertions(+)
diff --git a/kernel/power/suspend.c b/kernel/power/suspend.c
index 3ecf275d7e44..f44d2152ab3f 100644
--- a/kernel/power/suspend.c
+++ b/kernel/power/suspend.c
@@ -26,6 +26,7 @@
#include <linux/suspend.h>
#include <linux/syscore_ops.h>
#include <linux/ftrace.h>
+#include <linux/rtc.h>
#include <trace/events/power.h>
#include <linux/compiler.h>
#include <linux/moduleparam.h>
@@ -579,6 +580,7 @@ int pm_suspend(suspend_state_t state)
if (state <= PM_SUSPEND_ON || state >= PM_SUSPEND_MAX)
return -EINVAL;
+ rtc_show_time("PM: suspend entry");
error = enter_state(state);
if (error) {
suspend_stats.fail++;
@@ -586,6 +588,7 @@ int pm_suspend(suspend_state_t state)
} else {
suspend_stats.success++;
}
+ rtc_show_time("PM: suspend exit");
return error;
}
EXPORT_SYMBOL(pm_suspend);
--
2.13.2.932.g7449e964c-goog
[toc] | [next] | [standalone]
| From | "Rafael J. Wysocki" <rjw@rjwysocki.net> |
|---|---|
| Date | 2017-07-19 00:40 +0200 |
| Message-ID | <u4JjP-8ii-7@gated-at.bofh.it> |
| In reply to | #1690511 |
On Tuesday, July 18, 2017 10:25:58 AM Mark Salyzyn wrote: > Permits power state and battery life diagnosis. > > Feature activated by CONFIG_RTC_SHOW_TIME. > > Signed-off-by: Mark Salyzyn <salyzyn@android.com> Please fold the [4/4] into this one and I have a patch series that you'd want to rebase this on I guess. I'll send it shortly. Thanks, Rafael
[toc] | [prev] | [next] | [standalone]
| From | Mark Salyzyn <salyzyn@android.com> |
|---|---|
| Date | 2017-07-19 01:30 +0200 |
| Message-ID | <u4K6f-ns-33@gated-at.bofh.it> |
| In reply to | #1690784 |
On 07/18/2017 03:25 PM, Rafael J. Wysocki wrote: > On Tuesday, July 18, 2017 10:25:58 AM Mark Salyzyn wrote: >> Permits power state and battery life diagnosis. >> >> Feature activated by CONFIG_RTC_SHOW_TIME. >> >> Signed-off-by: Mark Salyzyn <salyzyn@android.com> > Please fold the [4/4] into this one and I have a patch series that you'd > want to rebase this on I guess. I'll send it shortly. > > Thanks, > Rafael > Ok, after all the disputes are laid to rest, I will roll these in together on the respin.
[toc] | [prev] | [standalone]
Back to top | Article view | linux.kernel
csiph-web