Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > linux.kernel > #1531808

RE: [PATCH 3/4] timekeeping: Ignore the bogus sleep time if pm_trace is enabled

From "Chen, Yu C" <yu.c.chen@intel.com>
Newsgroups linux.kernel
Subject RE: [PATCH 3/4] timekeeping: Ignore the bogus sleep time if pm_trace is enabled
Date 2016-11-29 00:50 +0100
Message-ID <sIDQl-jV-3@gated-at.bofh.it> (permalink)
References <sF5UR-78-3@gated-at.bofh.it> <sF5UR-78-5@gated-at.bofh.it> <sFRZv-7a5-13@gated-at.bofh.it> <sGYYW-Vx-15@gated-at.bofh.it> <sIz0m-5MH-27@gated-at.bofh.it>
Organization linux.* mail to news gateway

Show all headers | View raw


> -----Original Message-----
> From: John Stultz [mailto:john.stultz@linaro.org]
> Sent: Tuesday, November 29, 2016 2:39 AM
> To: Chen, Yu C
> Cc: Ingo Molnar; lkml; Rafael J. Wysocki; Xunlei Pang; Ingo Molnar; Len Brown;
> H. Peter Anvin; Pavel Machek; Thomas Gleixner; Prarit Bhargava; Richard
> Cochran
> Subject: Re: [PATCH 3/4] timekeeping: Ignore the bogus sleep time if pm_trace
> is enabled
> 
> On Thu, Nov 24, 2016 at 1:54 AM, Chen, Yu C <yu.c.chen@intel.com> wrote:
> > Hi,
> >
> >> -----Original Message-----
> >> From: Ingo Molnar [mailto:mingo.kernel.org@gmail.com] On Behalf Of
> >> Ingo Molnar
> >> Sent: Monday, November 21, 2016 4:18 PM
> >> To: John Stultz
> >> Cc: lkml; Chen, Yu C; Rafael J. Wysocki; Xunlei Pang; Ingo Molnar; Len Brown;
> H.
> >> Peter Anvin; Pavel Machek; Thomas Gleixner; Prarit Bhargava; Richard
> >> Cochran
> >> Subject: Re: [PATCH 3/4] timekeeping: Ignore the bogus sleep time if
> >> pm_trace is enabled
> >>
> >>
> >> * John Stultz <john.stultz@linaro.org> wrote:
> >>
> >> > +static int pm_trace_notify(struct notifier_block *nb,
> >> > +                           unsigned long mode, void *_unused) {
> >> > +   switch (mode) {
> >> > +   case PM_POST_HIBERNATION:
> >> > +   case PM_POST_SUSPEND:
> >> > +           if (pm_trace_rtc_abused) {
> >> > +                   pm_trace_rtc_abused = false;
> >> > +                   pr_warn("Possible incorrect RTC due to pm_trace,"
> >> > +                           "please use ntp-date or rdate to
> >> > +reset.\n");
> >>
> >> Please don't break user-visible strings just to pacify checkpatch!
> >>
> >> The bogus linebreak above hides a type in the user string:
> >>
> >>   Possible incorrect RTC due to pm_trace,please use ntp-date or rdate to
> reset.
> >>
> >> (There's a missing space after the comma.)
> >>
> >> Best practice is to preserve the continuous nature of the user string in the
> code.
> >>
> >> In addition to that, please quote suggested command names, i.e. something
> like:
> >>
> >>   Possible incorrect RTC due to pm_trace, please use 'ntp-date' or
> >> 'rdate' to reset it.
> > OK, will do.
> 
> Just a heads up. I've already made these changes in my tree.
> 
> thanks
> -john
OK, thanks very much!  john. 

Yu

Back to linux.kernel | Previous | NextPrevious in thread | Find similar | Unroll thread


Thread

Re: [PATCH 3/4] timekeeping: Ignore the bogus sleep time if pm_trace  is enabled John Stultz <john.stultz@linaro.org> - 2016-11-28 19:40 +0100
  RE: [PATCH 3/4] timekeeping: Ignore the bogus sleep time if  pm_trace is enabled "Chen, Yu C" <yu.c.chen@intel.com> - 2016-11-29 00:50 +0100

csiph-web