From: Philippe Gerum <rpm@xenomai.org>
To: Thomas De Schampheleire <patrickdepinguin+xenomai@domain.hid>
Cc: xenomai@xenomai.org
Subject: Re: [Xenomai-help] [PATCH 3 of 4] psos: add tm_getm function
Date: Wed, 26 Oct 2011 12:22:06 +0200 [thread overview]
Message-ID: <4EA7DF4E.7030403@domain.hid> (raw)
In-Reply-To: <8493adf46f985831fad1.1318861192@domain.hid>
On 10/19/2011 09:35 AM, Thomas De Schampheleire wrote:
> Signed-off-by: Thomas De Schampheleire<thomas.de.schampheleire@domain.hid>
> Signed-off-by: Ronny Meeus<ronny.meeus@domain.hid>
>
> ---
> include/psos/psos.h | 2 ++
> lib/psos/tm.c | 7 +++++++
> 2 files changed, 9 insertions(+), 0 deletions(-)
>
> diff --git a/include/psos/psos.h b/include/psos/psos.h
> --- a/include/psos/psos.h
> +++ b/include/psos/psos.h
> @@ -363,6 +363,8 @@ u_long tm_set(u_long date,
> u_long time,
> u_long ticks);
>
> +u_long tm_getm(unsigned long long *ns);
> +
> u_long tm_wkafter(u_long ticks);
>
> u_long tm_wkwhen(u_long date,
> diff --git a/lib/psos/tm.c b/lib/psos/tm.c
> --- a/lib/psos/tm.c
> +++ b/lib/psos/tm.c
> @@ -309,3 +309,10 @@ u_long tm_get(u_long *date_r, u_long *ti
>
> return SUCCESS;
> }
> +
> +u_long tm_getm(unsigned long long *ns_r)
> +{
> + *ns_r = clockobj_get_tsc();
> + return SUCCESS;
> +}
- *ns_r = clockobj_get_tsc();
+ *ns_r = clockobj_tsc_to_ns(clockobj_get_tsc());
--
Philippe.
next prev parent reply other threads:[~2011-10-26 10:22 UTC|newest]
Thread overview: 22+ messages / expand[flat|nested] mbox.gz Atom feed top
2011-10-19 7:35 [Xenomai-help] [PATCH 0 of 4] xenomai-forge PSOS: miscellaneous fixes Thomas De Schampheleire
2011-10-19 7:35 ` [Xenomai-help] [PATCH 1 of 4] psos.h: add definition of ERR_OBJTFULL Thomas De Schampheleire
2011-10-26 10:19 ` Philippe Gerum
2011-10-26 10:26 ` Thomas De Schampheleire
2011-10-26 10:33 ` Philippe Gerum
2011-10-26 11:11 ` Thomas De Schampheleire
2011-10-26 12:01 ` Philippe Gerum
2011-10-19 7:35 ` [Xenomai-help] [PATCH 2 of 4] psos: port long_names feature to xenomai-forge Thomas De Schampheleire
2011-10-26 10:21 ` Philippe Gerum
2011-10-26 10:41 ` Thomas De Schampheleire
2011-10-26 11:57 ` Philippe Gerum
2011-10-19 7:35 ` [Xenomai-help] [PATCH 3 of 4] psos: add tm_getm function Thomas De Schampheleire
2011-10-26 10:22 ` Philippe Gerum [this message]
2011-10-26 10:42 ` Thomas De Schampheleire
2011-10-19 7:35 ` [Xenomai-help] [PATCH 4 of 4] psos: fix compiler warning: cprio could be used uninitialized Thomas De Schampheleire
2011-10-26 10:25 ` Philippe Gerum
2011-10-26 11:04 ` Thomas De Schampheleire
2011-10-26 11:58 ` Philippe Gerum
2011-10-26 12:32 ` Thomas De Schampheleire
2011-10-26 9:44 ` [Xenomai-help] [PATCH 0 of 4] xenomai-forge PSOS: miscellaneous fixes Thomas De Schampheleire
2011-10-26 12:47 ` Philippe Gerum
2011-10-26 12:54 ` Thomas De Schampheleire
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=4EA7DF4E.7030403@domain.hid \
--to=rpm@xenomai.org \
--cc=patrickdepinguin+xenomai@domain.hid \
--cc=xenomai@xenomai.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.