From: Mike Frysinger <vapier@gentoo.org>
To: u-boot@lists.denx.de
Subject: [U-Boot] [PATCH] sandbox: Add timer simulation
Date: Tue, 29 Nov 2011 10:06:20 -0500 [thread overview]
Message-ID: <201111291006.21685.vapier@gentoo.org> (raw)
In-Reply-To: <4ED4A74A.1000501@googlemail.com>
On Tuesday 29 November 2011 04:35:06 Matthias Wei?er wrote:
> Am 28.11.2011 23:57, schrieb Mike Frysinger:
> > On Monday 28 November 2011 16:40:29 Matthias Weisser wrote:
> >> Making sleep command work
> >
> > i like the idea, but using clock_xxx funcs makes me sad (generally
> > requires a "newerish" glibc and -lrt). my only alternative proposal is
> > to use usec's with gettimeofday ... maybe that's good enough ? although
> > we'll probably need to add nsec support eventually anyways for the newer
> > timer code ...
>
> I would like to stay with clock_gettime(CLOCK_MONOTONIC, ...) as the
> value isn't subjected to change when wall time is changed. Still there
> are chances to get wrong (non monotonic) values when NTP adjusts
> frequencies. Maybe some ifdef magic can be used to even use
> CLOCK_MONOTONIC_RAW if it is available and fall back to gettimeofday in
> case of older systems. The only thing would be then -lrt on the linker
> command line which has to be sorted out somehow.
i think atm, we're focusing on sandbox working on Linux/glibc hosts. we're
not *too* worried about portability atm. we can worry about that once sandbox
is more than just a PoC toy :).
-mike
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 836 bytes
Desc: This is a digitally signed message part.
URL: <http://lists.denx.de/pipermail/u-boot/attachments/20111129/eb973418/attachment.pgp>
next prev parent reply other threads:[~2011-11-29 15:06 UTC|newest]
Thread overview: 13+ messages / expand[flat|nested] mbox.gz Atom feed top
2011-11-28 21:40 [U-Boot] [PATCH] sandbox: Add timer simulation Matthias Weisser
2011-11-28 22:57 ` Mike Frysinger
2011-11-29 9:35 ` Matthias Weißer
2011-11-29 15:06 ` Mike Frysinger [this message]
2011-11-29 11:16 ` [U-Boot] [PATCH V2] " Matthias Weisser
2011-11-29 15:25 ` Mike Frysinger
2011-11-29 16:55 ` Simon Glass
2011-11-29 18:40 ` Mike Frysinger
2011-11-29 20:04 ` Simon Glass
2011-11-29 21:41 ` Mike Frysinger
2011-11-29 21:58 ` Simon Glass
2011-12-02 19:48 ` Mike Frysinger
2011-12-02 17:49 ` Mike Frysinger
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=201111291006.21685.vapier@gentoo.org \
--to=vapier@gentoo.org \
--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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox