Re: [PATCH v5] PM: sleep: Expose last succeeded resumed timestamp in sysfs
From: Google
Date: Wed Nov 29 2023 - 08:18:41 EST
Hi Randy,
On Mon, 27 Nov 2023 15:47:01 -0800
Randy Dunlap <rdunlap@xxxxxxxxxxxxx> wrote:
> Hi--
>
>
> On 11/27/23 02:38, Masami Hiramatsu (Google) wrote:
> > From: Masami Hiramatsu <mhiramat@xxxxxxxxxx>
> >
>
> > diff --git a/kernel/power/main.c b/kernel/power/main.c
> > index f6425ae3e8b0..2ab23fd3daac 100644
> > --- a/kernel/power/main.c
> > +++ b/kernel/power/main.c
>
> > @@ -514,6 +526,9 @@ static int suspend_stats_show(struct seq_file *s, void *unused)
> > suspend_step_name(
> > suspend_stats.failed_steps[index]));
> > }
> > + seq_printf(s, "last_success_resume_time:\t%-llu.%llu\n",
>
> The <TAB> after "s," is a bit odd IMO, but I don't see a need to resend it
> just for that.
Yeah, this might be a cosmetic tab. You can see the other seq_prints()
in the same function also have the same <TAB>. I don't want to break it.
Thank you,
>
> > + (unsigned long long)suspend_stats.last_success_resume_time.tv_sec,
> > + (unsigned long long)suspend_stats.last_success_resume_time.tv_nsec);
> >
> > return 0;
> > }
>
> --
> ~Randy
--
Masami Hiramatsu (Google) <mhiramat@xxxxxxxxxx>