All of lore.kernel.org
 help / color / mirror / Atom feed
From: Philippe Gerum <rpm@xenomai.org>
To: Jan Kiszka <jan.kiszka@domain.hid>
Cc: "adeos-main@gna.org" <adeos-main@gna.org>,
	"Mauerer, Wolfgang" <wolfgang.mauerer@domain.hid>
Subject: Re: [Adeos-main] [PATCH 2/2] ipipe: CLOCK_HOST_REALTIME: x86-specific part
Date: Wed, 25 Aug 2010 11:38:59 +0200	[thread overview]
Message-ID: <1282729139.1709.47.camel@domain.hid> (raw)
In-Reply-To: <4C74E32D.2080101@domain.hid>

On Wed, 2010-08-25 at 11:32 +0200, Jan Kiszka wrote:
> Philippe Gerum wrote:
> >>>> diff --git a/arch/x86/kernel/vsyscall_64.c b/arch/x86/kernel/vsyscall_64.c
> >>>> index 8cb4974..f1b90f7 100644
> >>>> --- a/arch/x86/kernel/vsyscall_64.c
> >>>> +++ b/arch/x86/kernel/vsyscall_64.c
> >>>> @@ -32,6 +32,7 @@
> >>>>  #include <linux/cpu.h>
> >>>>  #include <linux/smp.h>
> >>>>  #include <linux/notifier.h>
> >>>> +#include <linux/ipipe_tickdev.h>
> >>>>  
> >>>>  #include <asm/vsyscall.h>
> >>>>  #include <asm/pgtable.h>
> >>>> @@ -89,6 +90,11 @@ void update_vsyscall(struct timespec *wall_time, struct clocksource *clock)
> >>>>  	vsyscall_gtod_data.wall_to_monotonic = wall_to_monotonic;
> >>>>  	vsyscall_gtod_data.wall_time_coarse = __current_kernel_time();
> >>>>  	write_sequnlock_irqrestore(&vsyscall_gtod_data.lock, flags);
> >>>> +
> >>>> +#ifdef CONFIG_IPIPE_HOSTRT
> >>>> +	if (clock == &clocksource_tsc)
> >>>> +		update_ipipe_hostrt(wall_time, clock);
> >>>> +#endif
> >>>>  }
> >>> It would be nice to move the test on clock to ipipe_update_hostrt() in
> >>> order to hide all nitty-gritty details from mainline. Making the code
> >>> unconditionally compiled in removes the need to #ifdefery.
> >> This code is arch-specific while update_ipipe_hostrt is generic.
> >>
> > 
> > We don't need #ifdefery with the conditional definition of
> > ipipe_update_hostrt() in ipipe_tickdev.h.
> 
> You mean rely on the compiler optimizing the check away? OK, now I get it.

Yep.

> 
> Jan
> 

-- 
Philippe.




  reply	other threads:[~2010-08-25  9:38 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
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 [this message]
  -- 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 2/2] ipipe: CLOCK_HOST_REALTIME: x86-specific part 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=1282729139.1709.47.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.