mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
From: Jason Wessel <jason.wessel@windriver.com>
To: Arnd Bergmann <arnd@arndb.de>, Baolin Wang <baolin.wang@linaro.org>
Cc: Daniel Thompson <daniel.thompson@linaro.org>,
	Ingo Molnar <mingo@kernel.org>, Mark Brown <broonie@kernel.org>,
	<kgdb-bugreport@lists.sourceforge.net>,
	Linux Kernel Mailing List <linux-kernel@vger.kernel.org>
Subject: Re: [PATCH v2] kdb: use ktime_get_mono_fast_ns() instead of ktime_get_ts()
Date: Tue, 30 Jan 2018 08:02:10 -0600	[thread overview]
Message-ID: <8c05803e-eda8-36a1-fd38-77cb570f4ba9@windriver.com> (raw)
In-Reply-To: <CAK8P3a1_tNGhqN+tbfbxtpdPJ+=ksNS4QJ=sPYCz7ORAqKVQAw@mail.gmail.com>

On 01/30/2018 07:35 AM, Arnd Bergmann wrote:
> On Mon, Jan 29, 2018 at 3:22 AM, Baolin Wang <baolin.wang@linaro.org> wrote:
>> The kdb code will print the monotonic time by ktime_get_ts(), but
>> the ktime_get_ts() will be protected by a sequence lock, that will
>> introduce one deadlock risk if the lock was already held in the
>> context from which we entered the debugger.
>>
>> Thus we can use the ktime_get_mono_fast_ns() to get the monotonic
>> time, which is NMI safe access to clock monotonic. Moreover we can
>> remove the 'struct timespec', which is not y2038 safe.
>>
>> Signed-off-by: Baolin Wang <baolin.wang@linaro.org>
> 
> Reviewed-by: Arnd Bergmann <arnd@arndb.de>
> 


I'll add this in today, run some tests and it should be in the merge window.

Thanks,
Jason

      reply	other threads:[~2018-01-30 14:02 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2018-01-29  2:22 Baolin Wang
2018-01-30  9:48 ` Daniel Thompson
2018-01-30 13:35 ` Arnd Bergmann
2018-01-30 14:02   ` Jason Wessel [this message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=8c05803e-eda8-36a1-fd38-77cb570f4ba9@windriver.com \
    --to=jason.wessel@windriver.com \
    --cc=arnd@arndb.de \
    --cc=baolin.wang@linaro.org \
    --cc=broonie@kernel.org \
    --cc=daniel.thompson@linaro.org \
    --cc=kgdb-bugreport@lists.sourceforge.net \
    --cc=linux-kernel@vger.kernel.org \
    --cc=mingo@kernel.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox

all inboxes | Powered by JetHome®