From: Julien Grall <julien.grall@linaro.org>
To: Oleksandr Tyshchenko <oleksandr.tyshchenko@globallogic.com>
Cc: Stefano Stabellini <stefano.stabellini@eu.citrix.com>,
Ian Campbell <ian.campbell@citrix.com>,
"xen-devel@lists.xen.org" <xen-devel@lists.xen.org>
Subject: Re: ARM, time: alternative of using udelay() before init time
Date: Mon, 20 Oct 2014 13:30:17 +0100 [thread overview]
Message-ID: <54450059.1080208@linaro.org> (raw)
In-Reply-To: <CAJEb2DF0DHAkKNG7EPYCTHQk5KCf6M-_2cDkQmw6Neeqw=cPXg@mail.gmail.com>
Hi Oleksandr,
On 10/20/2014 11:12 AM, Oleksandr Tyshchenko wrote:
> On Fri, Oct 17, 2014 at 7:22 PM, Julien Grall <julien.grall@linaro.org> wrote:
>>
>> I'm wondering how Linux deal with the time when the timer is not
>> initialized?
>
> If I understood correctly the udelay() can works before timer initialized.
I gave a look to the Linux code and it looks like they have an
implementation based on jiffies to used when the timer is not
initialized. (see __loop_udelay in arch/arm/lib/delay.c).
I'm not sure if it's relevant to do exactly the same. But we could
implement a loop-based udelay when the timer is not correctly initialized.
Regards,
--
Julien Grall
next prev parent reply other threads:[~2014-10-20 12:30 UTC|newest]
Thread overview: 7+ messages / expand[flat|nested] mbox.gz Atom feed top
2014-10-16 15:10 ARM, time: alternative of using udelay() before init time Oleksandr Tyshchenko
2014-10-17 12:58 ` Julien Grall
2014-10-17 16:12 ` Oleksandr Tyshchenko
2014-10-17 16:22 ` Julien Grall
2014-10-20 10:12 ` Oleksandr Tyshchenko
2014-10-20 12:30 ` Julien Grall [this message]
2014-10-20 12:35 ` Oleksandr Tyshchenko
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=54450059.1080208@linaro.org \
--to=julien.grall@linaro.org \
--cc=ian.campbell@citrix.com \
--cc=oleksandr.tyshchenko@globallogic.com \
--cc=stefano.stabellini@eu.citrix.com \
--cc=xen-devel@lists.xen.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 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.