All of lore.kernel.org
 help / color / mirror / Atom feed
From: Stefan Roese <sr@denx.de>
To: u-boot@lists.denx.de
Subject: [PATCH] watchdog: Handle timer wrap around
Date: Mon, 16 Mar 2020 15:19:11 +0100	[thread overview]
Message-ID: <b20947b7-6e0c-387f-ecb7-4096113694b9@denx.de> (raw)
In-Reply-To: <20200224002033.17860-1-judge.packham@gmail.com>

On 24.02.20 01:20, Chris Packham wrote:
> On some platforms/architectures the value from get_timer() can wrap.
> This is particularly problematic when long-running code needs to measure
> a time difference as is the case with watchdog_reset() which tries to
> avoid tickling the watchdog too frequently.
> 
> Use time_after() from time.h instead of a plain > comparison to avoid
> any issues with the time wrapping on a system that has been sitting in
> u-boot for a long time.
> 
> Signed-off-by: Chris Packham <judge.packham@gmail.com>

Applied to u-boot-marvell/master.

Thanks,
Stefan

      parent reply	other threads:[~2020-03-16 14:19 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2020-02-24  0:20 [PATCH] watchdog: Handle timer wrap around Chris Packham
2020-02-24 11:48 ` Stefan Roese
2020-03-16 14:19 ` Stefan Roese [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=b20947b7-6e0c-387f-ecb7-4096113694b9@denx.de \
    --to=sr@denx.de \
    --cc=u-boot@lists.denx.de \
    /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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.