Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > linux.kernel > #1484561

Re: [PATCH v3) posix-timers: make it configurable

From Josh Triplett <josh@joshtriplett.org>
Newsgroups linux.kernel
Subject Re: [PATCH v3) posix-timers: make it configurable
Date 2016-09-16 00:00 +0200
Message-ID <shMRj-43H-9@gated-at.bofh.it> (permalink)
References (5 earlier) <shKFQ-2IM-17@gated-at.bofh.it> <shKZb-2PE-3@gated-at.bofh.it> <shM4V-3Md-13@gated-at.bofh.it> <shMeC-3PX-11@gated-at.bofh.it> <shMxX-3WU-9@gated-at.bofh.it>
Organization linux.* mail to news gateway

Show all headers | View raw


On Thu, Sep 15, 2016 at 05:35:28PM -0400, Nicolas Pitre wrote:
> On Thu, 15 Sep 2016, Josh Triplett wrote:
> 
> > On Thu, Sep 15, 2016 at 11:07:24PM +0200, Richard Cochran wrote:
> > > On Thu, Sep 15, 2016 at 12:58:22PM -0700, John Stultz wrote:
> > > > This doesn't look too bad.
> > > 
> > > I disagree.  It looks ugly.  If tinification means sprinkling more and
> > > more of these conditionals all over the place, then it is going to be
> > > a tough sell.
> > 
> > Looking at this particular patch, it does seem a bit much for the
> > ability to have PTP without timers.  That doesn't seem like a very
> > likely combination.  Handling that in Kconfig seems fine, unless there's
> > a concrete use case for that combination.
> 
> I doubt there is.  This is more for randconfig purposes or the like.
> 
> I suspect there is more of a case for having net drivers _without_ ptp 
> support.  This could be implemented with a ptp_clock_register() stub 
> returning NULL when ptp is not configured.  I didn't look at most 
> drivers but at least broadcom/tg3.c seems to be fine with such an 
> approach.
> 
> Alternatively, all those ethernet drivers currently selecting 
> PTP_1588_CLOCK could be banned from the kernel config when POSIX_TIMERS 
> is not selected.
> 
> What do people prefer?

If the stubs prove as simple as you suggest above (a static inline
returning NULL), that sounds ideal.  If this would require a non-trivial
amount of stub code, then preventing those drivers from building without
POSIX_TIMERS seems preferable to that.

Back to linux.kernel | Previous | NextPrevious in thread | Next in thread | Find similar | Unroll thread


Thread

[PATCH v3) posix-timers: make it configurable Nicolas Pitre <nicolas.pitre@linaro.org> - 2016-09-15 05:50 +0200
  Re: [PATCH v3) posix-timers: make it configurable John Stultz <john.stultz@linaro.org> - 2016-09-15 19:50 +0200
    Re: [PATCH v3) posix-timers: make it configurable Nicolas Pitre <nicolas.pitre@linaro.org> - 2016-09-15 20:00 +0200
  Re: [PATCH v3) posix-timers: make it configurable John Stultz <john.stultz@linaro.org> - 2016-09-15 20:20 +0200
    Re: [PATCH v3) posix-timers: make it configurable Nicolas Pitre <nicolas.pitre@linaro.org> - 2016-09-15 20:30 +0200
      Re: [PATCH v3) posix-timers: make it configurable Nicolas Pitre <nicolas.pitre@linaro.org> - 2016-09-15 20:40 +0200
        Re: [PATCH v3) posix-timers: make it configurable John Stultz <john.stultz@linaro.org> - 2016-09-15 20:50 +0200
          Re: [PATCH v3) posix-timers: make it configurable Nicolas Pitre <nicolas.pitre@linaro.org> - 2016-09-15 21:40 +0200
            Re: [PATCH v3) posix-timers: make it configurable John Stultz <john.stultz@linaro.org> - 2016-09-15 22:00 +0200
              Re: [PATCH v3) posix-timers: make it configurable Richard Cochran <richardcochran@gmail.com> - 2016-09-15 23:10 +0200
                Re: [PATCH v3) posix-timers: make it configurable Josh Triplett <josh@joshtriplett.org> - 2016-09-15 23:20 +0200
                Re: [PATCH v3) posix-timers: make it configurable Nicolas Pitre <nicolas.pitre@linaro.org> - 2016-09-15 23:40 +0200
                Re: [PATCH v3) posix-timers: make it configurable Josh Triplett <josh@joshtriplett.org> - 2016-09-16 00:00 +0200
                Re: [PATCH v3) posix-timers: make it configurable Richard Cochran <richardcochran@gmail.com> - 2016-09-16 09:30 +0200
                Re: [PATCH v3) posix-timers: make it configurable Nicolas Pitre <nicolas.pitre@linaro.org> - 2016-09-17 05:00 +0200
                Re: [PATCH v3) posix-timers: make it configurable Richard Cochran <richardcochran@gmail.com> - 2016-09-18 16:40 +0200
                Re: [PATCH v3) posix-timers: make it configurable Nicolas Pitre <nicolas.pitre@linaro.org> - 2016-09-18 19:00 +0200
                Re: [PATCH v3) posix-timers: make it configurable Richard Cochran <richardcochran@gmail.com> - 2016-09-18 20:30 +0200
                Re: [PATCH v3) posix-timers: make it configurable Nicolas Pitre <nicolas.pitre@linaro.org> - 2016-09-18 21:00 +0200
                Re: [PATCH v3) posix-timers: make it configurable Richard Cochran <richardcochran@gmail.com> - 2016-09-18 22:30 +0200
                Re: [PATCH v3) posix-timers: make it configurable Nicolas Pitre <nicolas.pitre@linaro.org> - 2016-09-18 22:40 +0200
                Re: [PATCH v3) posix-timers: make it configurable Richard Cochran <richardcochran@gmail.com> - 2016-09-18 23:20 +0200
              Re: [PATCH v3) posix-timers: make it configurable Richard Cochran <richardcochran@gmail.com> - 2016-09-15 23:30 +0200
      Re: [PATCH v3) posix-timers: make it configurable John Stultz <john.stultz@linaro.org> - 2016-09-15 20:40 +0200
  Re: [PATCH v3) posix-timers: make it configurable kbuild test robot <lkp@intel.com> - 2016-09-16 16:40 +0200

csiph-web