Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S964964AbbBBUD5 (ORCPT ); Mon, 2 Feb 2015 15:03:57 -0500 Received: from mail-pa0-f42.google.com ([209.85.220.42]:36326 "EHLO mail-pa0-f42.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S964909AbbBBUDx (ORCPT ); Mon, 2 Feb 2015 15:03:53 -0500 From: Kevin Hilman To: Alexandre Belloni Cc: Thomas Gleixner , John Stultz , Daniel Lezcano , Nicolas Ferre , Boris Brezillon , linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org Subject: Re: [RFC 1/2] clocksource: track usage References: <1421399874-29119-1-git-send-email-alexandre.belloni@free-electrons.com> <1421399874-29119-2-git-send-email-alexandre.belloni@free-electrons.com> Date: Mon, 02 Feb 2015 12:03:50 -0800 In-Reply-To: <1421399874-29119-2-git-send-email-alexandre.belloni@free-electrons.com> (Alexandre Belloni's message of "Fri, 16 Jan 2015 10:17:53 +0100") Message-ID: <7ha90wqdw9.fsf@deeprootsystems.com> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/24.3 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 1109 Lines: 31 Alexandre Belloni writes: > Track whether the clocksource is enabled or disabled. > > Signed-off-by: Alexandre Belloni > --- > include/linux/clocksource.h | 4 ++++ > kernel/time/clocksource.c | 26 ++++++++++++++++++++++++++ > kernel/time/timekeeping.c | 8 +++----- > 3 files changed, 33 insertions(+), 5 deletions(-) > > diff --git a/include/linux/clocksource.h b/include/linux/clocksource.h > index abcafaa20b86..7735902fc5f6 100644 > --- a/include/linux/clocksource.h > +++ b/include/linux/clocksource.h > @@ -210,6 +210,8 @@ struct clocksource { > #define CLOCK_SOURCE_SUSPEND_NONSTOP 0x80 > #define CLOCK_SOURCE_RESELECT 0x100 > > +#define CLOCK_SOURCE_USED 0x200 minor nit: How about s/USED/ENABLED/ so the flag name is similar to the function names. Kevin -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/