From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751701AbcIOSNb (ORCPT ); Thu, 15 Sep 2016 14:13:31 -0400 Received: from mail-oi0-f53.google.com ([209.85.218.53]:34807 "EHLO mail-oi0-f53.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1750867AbcIOSNW (ORCPT ); Thu, 15 Sep 2016 14:13:22 -0400 MIME-Version: 1.0 In-Reply-To: References: From: John Stultz Date: Thu, 15 Sep 2016 11:13:20 -0700 Message-ID: Subject: Re: [PATCH v3) posix-timers: make it configurable To: Nicolas Pitre Cc: Thomas Gleixner , Josh Triplett , Richard Cochran , lkml Content-Type: text/plain; charset=UTF-8 Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org > diff --git a/kernel/time/Kconfig b/kernel/time/Kconfig > index 62824f2fe4..62504a2c9f 100644 > --- a/kernel/time/Kconfig > +++ b/kernel/time/Kconfig > @@ -195,3 +195,21 @@ config HIGH_RES_TIMERS > > endmenu > endif > + > +config POSIX_TIMERS > + bool "Posix Clocks & timers" if EMBEDDED > + default y > + help > + This includes native support for POSIX timers to the kernel. > + Most embedded systems may have no use for them and therefore they > + can be configured out to reduce the size of the kernel image. > + > + When this option is disabled, the following syscalls won't be > + available: timer_create, timer_gettime: timer_getoverrun, > + timer_settime, timer_delete, clock_adjtime. Furthermore, the > + clock_settime, clock_gettime, clock_getres and clock_nanosleep > + syscalls will be limited to CLOCK_REALTIME and CLOCK_MONOTONIC > + only. > + > + If unsure say y. > One thought.. Should this go under: Configure standard kernel features (expert users) rather then a top level item under General Setup ? thanks -john