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


Groups > linux.kernel > #1479520

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

From John Stultz <john.stultz@linaro.org>
Newsgroups linux.kernel
Subject Re: [RFC/PATCH] posix-timers: make them configurable
Date 2016-09-08 23:20 +0200
Message-ID <sfeTM-2z8-23@gated-at.bofh.it> (permalink)
References <sfeTM-2z8-25@gated-at.bofh.it>
Organization linux.* mail to news gateway

Show all headers | View raw


On Thu, Sep 8, 2016 at 2:05 PM, Nicolas Pitre <nico@fluxnic.net> wrote:
>
> Small embedded systems typically don't need them.  This removes about
> 16KB from the kernel binary size on ARM when configured out.
> Corresponding syscalls are routed to a stub logging the attempt to
> use those syscalls which should be enough of a clue if they were
> disabled without proper consideration.
>
> Signed-off-by: Nicolas Pitre <nico@linaro.org>

Hrm... So being able to trim down the kernel is important.

Although my sense is that momentum has been moving to clock_gettime()
over gettimeofday(), such that gettimeofday() is mostly a shim over
clock_gettime() logic wise. So this is sort of going the other
direction.

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.

Josh (cc'ed) also was talking awhile back about cutting out the core
NTP logic. Having a single minimal-time option might be nice rather
then having a bunch of different conditionals that might be combined.

thanks
-john

Back to linux.kernel | Previous | NextNext 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