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


Groups > linux.kernel > #1480014

Re: [RFC/PATCH] posix-timers: make them configurable

From Thomas Gleixner <tglx@linutronix.de>
Newsgroups linux.kernel
Subject Re: [RFC/PATCH] posix-timers: make them configurable
Date 2016-09-09 16:00 +0200
Message-ID <sfuvv-3us-5@gated-at.bofh.it> (permalink)
References <sfeTM-2z8-25@gated-at.bofh.it> <sfeTM-2z8-23@gated-at.bofh.it> <sfoJs-8tz-13@gated-at.bofh.it> <sfp2O-ne-33@gated-at.bofh.it>
Organization linux.* mail to news gateway

Show all headers | View raw


On Fri, 9 Sep 2016, Josh Triplett wrote:

> On Fri, Sep 09, 2016 at 09:48:57AM +0200, Richard Cochran wrote:
> > On Thu, Sep 08, 2016 at 02:19:24PM -0700, John Stultz wrote:
> > > Also given many other syscalls take clockids and the backing logic
> > > isn't really getting removed (probably could cut the dynamic posix
> > > clocks core with the same conditional), I wonder if you could get a
> > > similar size win by taking a slightly more narrow cutting of the
> > > subsystem. That way you could preserve the more useful clock_gettime()
> > > functionality, but maybe stub out some of the less often used
> > > functionality.
> > 
> > I want to support tinification, but I also doubt the utility of
> > removing clock_gettime() and clock_nanosleep().  I can't imagine ever
> > building a user space without those.  In fact, thinking about IoT,
> > having good time is critical, and so these are the *last* functions I
> > would remove when downsizing.
> 
> 1) If you already have another function providing time and don't need two.

Agreed.

> 2) If you run an entirely event-driven loop and don't sleep.

I hope you wanted to say: and don't use *nanosleep() :) Otherwise you'd
have a full busy polling event loop which I doubt is desirable ...

Thanks,

	tglx


 

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


Thread

Re: [RFC/PATCH] posix-timers: make them configurable John Stultz <john.stultz@linaro.org> - 2016-09-08 23:20 +0200
  Re: [RFC/PATCH] posix-timers: make them configurable Josh Triplett <josh@joshtriplett.org> - 2016-09-08 23:50 +0200
  Re: [RFC/PATCH] posix-timers: make them configurable Nicolas Pitre <nicolas.pitre@linaro.org> - 2016-09-09 02:00 +0200
    Re: [RFC/PATCH] posix-timers: make them configurable Josh Triplett <josh@joshtriplett.org> - 2016-09-09 02:40 +0200
  Re: [RFC/PATCH] posix-timers: make them configurable Richard Cochran <richardcochran@gmail.com> - 2016-09-09 09:50 +0200
    Re: [RFC/PATCH] posix-timers: make them configurable Josh Triplett <josh@joshtriplett.org> - 2016-09-09 10:10 +0200
      Re: [RFC/PATCH] posix-timers: make them configurable Thomas Gleixner <tglx@linutronix.de> - 2016-09-09 16:00 +0200
    Re: [RFC/PATCH] posix-timers: make them configurable Thomas Gleixner <tglx@linutronix.de> - 2016-09-09 15:50 +0200

csiph-web