[<prev] [next>] [<thread-prev] [day] [month] [year] [list]
Message-ID: <2b5d9884-fe61-a7a4-567c-01ae61d2fff4@android.com>
Date: Wed, 19 Jul 2017 14:30:29 -0700
From: Mark Salyzyn <salyzyn@...roid.com>
To: Alexandre Belloni <alexandre.belloni@...e-electrons.com>
Cc: linux-kernel@...r.kernel.org, rjw@...ysocki.net,
len.brown@...el.com, pavel@....cz, linux-pm@...r.kernel.org,
a.zummo@...ertech.it, linux-rtc@...r.kernel.org,
Kees Cook <keescook@...omium.org>,
Anton Vorontsov <anton@...msg.org>,
Colin Cross <ccross@...roid.com>,
Tony Luck <tony.luck@...el.com>,
"Paul E. McKenney" <paulmck@...ux.vnet.ibm.com>,
Thomas Gleixner <tglx@...utronix.de>,
John Stultz <john.stultz@...aro.org>,
Nicolas Pitre <nicolas.pitre@...aro.org>,
Richard Cochran <richardcochran@...il.com>
Subject: Re: [PATCH v4 1/4] time: rtc-lib: Add rtc_show_time(const char
*prefix_msg)
On 07/19/2017 02:22 PM, Alexandre Belloni wrote:
> Hi,
>
> On 19/07/2017 at 12:44:41 -0700, Mark Salyzyn wrote:
>> Primary purpose of rtc_show_time is to provide a marker used for
>> post-mortem Battery and Power analysis. These markers occur at
>> major discontinuities of time, and thus optionally add a timestamp
>> to aid the analysis. This function is to be called at a higher
>> level, and were added because of a lack of current kernel logging
>> data.
>>
> I really think you should drop rtc from the config, function and file
> names because this doesn't have any relationship with any RTC stuff.
Agreed and Thanks. In another response, this function has more in common
with a pr_info_show_time() than I previously have accepted. Most of the
rtc part goes away if I follow that thread/idea Leaving the following:
> I can just see that you are (ab)using rtc_time64_to_tm because there is
> no struct tm or gmtime() in the kernel.
Yes, since we put that part into a separate patch, that can be
punted/accepted on its own, using rtc-lib is a simple concept. The
commit message for that patch should have had your line of sentiment in
it! (even (ab)using message :-) )
-- Mark
Powered by blists - more mailing lists