All the mail mirrored from lore.kernel.org
 help / color / mirror / Atom feed
From: Marek Vasut <marex@denx.de>
To: u-boot@lists.denx.de
Subject: [U-Boot] Very slow fatload on bcm2835
Date: Thu, 18 Jun 2015 14:34:49 +0200	[thread overview]
Message-ID: <201506181434.49781.marex@denx.de> (raw)
In-Reply-To: <558179C9.6000703@myspectrum.nl>

On Wednesday, June 17, 2015 at 03:44:41 PM, Jeroen Hofstee wrote:
> Hello Marek,
> 
> -    while (get_timer(bcm_host->last_write) < bcm_host->twoticks_delay)
> +    while (timer_get_us() < bcm_host->last_write +
> bcm_host->twoticks_delay)
>           ;
> 
> Can this counter / the right side of the comparison not overflow?

Yes it can -- what do you suggest to make it overflow-safe in this
particular case ?

Best regards,
Marek Vasut

  reply	other threads:[~2015-06-18 12:34 UTC|newest]

Thread overview: 7+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2015-06-11 18:35 [U-Boot] Very slow fatload on bcm2835 Jakub Kicinski
2015-06-16  4:01 ` Stephen Warren
2015-06-16  9:19   ` Michal Marek
2015-06-17 10:43     ` Marek Vasut
2015-06-17 13:44       ` Jeroen Hofstee
2015-06-18 12:34         ` Marek Vasut [this message]
2015-06-18  1:55       ` Stephen Warren

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=201506181434.49781.marex@denx.de \
    --to=marex@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.