From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1754905AbcIIUB3 (ORCPT ); Fri, 9 Sep 2016 16:01:29 -0400 Received: from mail-wm0-f68.google.com ([74.125.82.68]:32849 "EHLO mail-wm0-f68.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1754854AbcIIUBY (ORCPT ); Fri, 9 Sep 2016 16:01:24 -0400 From: Nicolai Stange To: Thomas Gleixner Cc: John Stultz , linux-kernel@vger.kernel.org, Nicolai Stange Subject: [RFC v6 13/23] clockevents: introduce CLOCK_EVT_FEAT_NO_ADJUST flag Date: Fri, 9 Sep 2016 22:00:23 +0200 Message-Id: <20160909200033.32103-14-nicstange@gmail.com> X-Mailer: git-send-email 2.9.3 In-Reply-To: <20160909200033.32103-1-nicstange@gmail.com> References: <20160909200033.32103-1-nicstange@gmail.com> Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Upcoming changes to the clockevent core will make it adjusting a clockevent device's mult/shift pair in order to compensate for NTP corrections made by the timekeeping core. For certain devices this behaviour is unwanted. Introduce the CLOCK_EVT_FEAT_NO_ADJUST flag that, when being set, will cause a clockevent device to be excluded from those adjustments. Signed-off-by: Nicolai Stange --- include/linux/clockchips.h | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/include/linux/clockchips.h b/include/linux/clockchips.h index a116926..9a25185 100644 --- a/include/linux/clockchips.h +++ b/include/linux/clockchips.h @@ -66,6 +66,12 @@ enum clock_event_state { */ # define CLOCK_EVT_FEAT_HRTIMER 0x000080 +/* + * Clockevent device's mult/shift pair shall not get adjusted in order + * to compensate for NTP corrections made in the timekeeping core. + */ +# define CLOCK_EVT_FEAT_NO_ADJUST 0x000100 + /** * struct clock_event_device - clock event device descriptor * @event_handler: Assigned by the framework to be called by the low -- 2.9.3