Skip to content

Commit 64e357e

Browse files
kdrag0ncyberknight777
authored andcommitted
Revert "ANDROID: PM / Suspend: Print wall time at suspend entry and exit"
This reverts commit a74944c. Spams the logs, we'll apply a time offset instead. Signed-off-by: Danny Lin <danny@kdrag0n.dev> Signed-off-by: Fiqri Ardyansyah <fiqri15072019@gmail.com> Signed-off-by: Forenche <prahul2003@gmail.com> Signed-off-by: Cyber Knight <cyberknight755@gmail.com>
1 parent 2c4851c commit 64e357e

1 file changed

Lines changed: 0 additions & 15 deletions

File tree

kernel/power/suspend.c

Lines changed: 0 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,6 @@
2828
#include <linux/suspend.h>
2929
#include <linux/syscore_ops.h>
3030
#include <linux/ftrace.h>
31-
#include <linux/rtc.h>
3231
#include <trace/events/power.h>
3332
#include <linux/compiler.h>
3433
#include <linux/moduleparam.h>
@@ -606,18 +605,6 @@ static int enter_state(suspend_state_t state)
606605
return error;
607606
}
608607

609-
static void pm_suspend_marker(char *annotation)
610-
{
611-
struct timespec ts;
612-
struct rtc_time tm;
613-
614-
getnstimeofday(&ts);
615-
rtc_time_to_tm(ts.tv_sec, &tm);
616-
pr_info("PM: suspend %s %d-%02d-%02d %02d:%02d:%02d.%09lu UTC\n",
617-
annotation, tm.tm_year + 1900, tm.tm_mon + 1, tm.tm_mday,
618-
tm.tm_hour, tm.tm_min, tm.tm_sec, ts.tv_nsec);
619-
}
620-
621608
/**
622609
* pm_suspend - Externally visible function for suspending the system.
623610
* @state: System sleep state to enter.
@@ -632,7 +619,6 @@ int pm_suspend(suspend_state_t state)
632619
if (state <= PM_SUSPEND_ON || state >= PM_SUSPEND_MAX)
633620
return -EINVAL;
634621

635-
pm_suspend_marker("entry");
636622
pr_info("suspend entry (%s)\n", mem_sleep_labels[state]);
637623
error = enter_state(state);
638624
if (error) {
@@ -641,7 +627,6 @@ int pm_suspend(suspend_state_t state)
641627
} else {
642628
suspend_stats.success++;
643629
}
644-
pm_suspend_marker("exit");
645630
pr_info("suspend exit\n");
646631
measure_wake_up_time();
647632
return error;

0 commit comments

Comments
 (0)