From: Philippe Gerum <rpm@xenomai.org>
To: Wolfgang Mauerer <wolfgang.mauerer@domain.hid>
Cc: Jan Kiszka <jan.kiszka@domain.hid>, adeos-main@gna.org
Subject: Re: [Adeos-main] [PATCH 1/2] ipipe: Pass NTP-corrected time information from Linux to higher domains
Date: Wed, 25 Aug 2010 10:44:03 +0200 [thread overview]
Message-ID: <1282725843.1709.12.camel@domain.hid> (raw)
In-Reply-To: <1278071401-13880-2-git-send-email-wolfgang.mauerer@domain.hid>
On Fri, 2010-07-02 at 13:50 +0200, Wolfgang Mauerer wrote:
<snip>
> diff --git a/include/linux/ipipe_tickdev.h b/include/linux/ipipe_tickdev.h
> index 4a1cb1b..86f13e0 100644
> --- a/include/linux/ipipe_tickdev.h
> +++ b/include/linux/ipipe_tickdev.h
> @@ -25,6 +25,7 @@
> #if defined(CONFIG_IPIPE) && defined(CONFIG_GENERIC_CLOCKEVENTS)
Since we should have CONFIG_HAVE_IPIPE_HOSTRT by now, let's use it.
>
> #include <linux/clockchips.h>
> +#include <linux/clocksource.h>
>
> struct tick_device;
>
> @@ -44,6 +45,30 @@ struct ipipe_tick_device {
> int real_shift;
> };
>
> +/*
> + * NOTE: When modifying this structure, make sure to keep the Xenomai
> + * definition include/nucleus/vdso.h in synch.
> + */
> +struct ipipe_hostrt_data {
> + short live;
> + seqcount_t seqcount;
> + time_t wall_time_sec;
> + u32 wall_time_nsec;
> + struct timespec wall_to_monotonic;
> + cycle_t cycle_last;
> + cycle_t mask;
> + u32 mult;
> + u32 shift;
> +};
> +
> +#ifdef CONFIG_IPIPE_HOSTRT
> +void ipipe_set_hostrt_data(struct ipipe_hostrt_data *exchg);
> +void update_ipipe_hostrt(struct timespec *wall_time, struct clocksource *clock);
Naming consistency -> ipipe_update_hostrt()
We should probably mark this as an internal interface as well, e.g.
__ipipe_update_hostrt.
> +#else /* !CONFIG_IPIPE_HOSTRT */
> +static inline void ipipe_set_hostrt_data(struct ipipe_hostrt_data *exchg) { };
> +static inline void update_ipipe_hostrt(struct timespec *wall_time, struct clocksource *clock) {};
> +#endif
> +
<snip>
> diff --git a/kernel/ipipe/core.c b/kernel/ipipe/core.c
> index 63deaf9..9b21db9 100644
> --- a/kernel/ipipe/core.c
> +++ b/kernel/ipipe/core.c
> @@ -48,6 +48,49 @@ static unsigned long __ipipe_domain_slot_map;
>
> struct ipipe_domain ipipe_root;
>
> +#ifdef CONFIG_IPIPE_HOSTRT
Same remark as previously regarding the use of CONFIG_HAVE_IPIPE_HOSTRT
in noarch code. In case the arch-dep code does support the feature, we
want the noarch section to always compile the generic bits. There is no
incentive for overcomplicated and error prone feature selection, only
for saving a few hundred bytes, most - if not all - people will want
anyway.
--
Philippe.
next prev parent reply other threads:[~2010-08-25 8:44 UTC|newest]
Thread overview: 23+ messages / expand[flat|nested] mbox.gz Atom feed top
2010-07-02 11:49 [Adeos-main] [PATCH 0/2] Host realtime clock support Wolfgang Mauerer
2010-07-02 11:50 ` [Adeos-main] [PATCH 1/2] ipipe: Pass NTP-corrected time information from Linux to higher domains Wolfgang Mauerer
2010-08-25 8:44 ` Philippe Gerum [this message]
2010-08-25 8:50 ` Jan Kiszka
2010-08-25 8:53 ` Philippe Gerum
2010-08-25 8:58 ` Jan Kiszka
2010-08-25 9:07 ` Philippe Gerum
2010-08-25 9:19 ` Jan Kiszka
2010-08-25 9:27 ` Philippe Gerum
2010-08-25 10:25 ` Jan Kiszka
2010-08-25 11:23 ` Philippe Gerum
2010-08-26 9:38 ` Jan Kiszka
2010-08-26 10:37 ` Philippe Gerum
2010-08-26 10:47 ` Jan Kiszka
2010-08-26 10:49 ` Philippe Gerum
2010-07-02 11:50 ` [Adeos-main] [PATCH 2/2] ipipe: CLOCK_HOST_REALTIME: x86-specific part Wolfgang Mauerer
2010-07-02 13:40 ` Gilles Chanteperdrix
2010-08-25 8:52 ` Philippe Gerum
2010-08-25 8:58 ` Jan Kiszka
2010-08-25 9:20 ` Philippe Gerum
2010-08-25 9:32 ` Jan Kiszka
2010-08-25 9:38 ` Philippe Gerum
-- strict thread matches above, loose matches on Subject: below --
2010-07-08 10:20 [Adeos-main] [PATCH v2 0/2] Host realtime clock support Wolfgang Mauerer
2010-07-08 10:20 ` [Adeos-main] [PATCH 1/2] ipipe: Pass NTP-corrected time information from Linux to higher domains Wolfgang Mauerer
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=1282725843.1709.12.camel@domain.hid \
--to=rpm@xenomai.org \
--cc=adeos-main@gna.org \
--cc=jan.kiszka@domain.hid \
--cc=wolfgang.mauerer@domain.hid \
/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.