From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1756206AbcB0IBR (ORCPT ); Sat, 27 Feb 2016 03:01:17 -0500 Received: from torg.zytor.com ([198.137.202.12]:37674 "EHLO terminus.zytor.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1756065AbcB0IBQ (ORCPT ); Sat, 27 Feb 2016 03:01:16 -0500 Date: Sat, 27 Feb 2016 00:00:58 -0800 From: tip-bot for Alexander Kuleshov Message-ID: Cc: kuleshovmail@gmail.com, john.stultz@linaro.org, mingo@kernel.org, hpa@zytor.com, prarit@redhat.com, tglx@linutronix.de, richardcochran@gmail.com, linux-kernel@vger.kernel.org Reply-To: prarit@redhat.com, tglx@linutronix.de, hpa@zytor.com, mingo@kernel.org, john.stultz@linaro.org, kuleshovmail@gmail.com, linux-kernel@vger.kernel.org, richardcochran@gmail.com In-Reply-To: <1456542854-22104-3-git-send-email-john.stultz@linaro.org> References: <1456542854-22104-3-git-send-email-john.stultz@linaro.org> To: linux-tip-commits@vger.kernel.org Subject: [tip:timers/core] jiffies: Use CLOCKSOURCE_MASK instead of constant Git-Commit-ID: 232d26373d310a941ef2ab46e53ea62fe076ed13 X-Mailer: tip-git-log-daemon Robot-ID: Robot-Unsubscribe: Contact to get blacklisted from these emails MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Content-Type: text/plain; charset=UTF-8 Content-Disposition: inline Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Commit-ID: 232d26373d310a941ef2ab46e53ea62fe076ed13 Gitweb: http://git.kernel.org/tip/232d26373d310a941ef2ab46e53ea62fe076ed13 Author: Alexander Kuleshov AuthorDate: Fri, 26 Feb 2016 19:14:14 -0800 Committer: Thomas Gleixner CommitDate: Sat, 27 Feb 2016 08:55:31 +0100 jiffies: Use CLOCKSOURCE_MASK instead of constant The CLOCKSOURCE_MASK(32) macro expands to the same value, but makes code more readable. Signed-off-by: Alexander Kuleshov Signed-off-by: John Stultz Cc: Prarit Bhargava Cc: Richard Cochran Link: http://lkml.kernel.org/r/1456542854-22104-3-git-send-email-john.stultz@linaro.org Signed-off-by: Thomas Gleixner --- kernel/time/jiffies.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/kernel/time/jiffies.c b/kernel/time/jiffies.c index 347fecf..555e21f 100644 --- a/kernel/time/jiffies.c +++ b/kernel/time/jiffies.c @@ -68,7 +68,7 @@ static struct clocksource clocksource_jiffies = { .name = "jiffies", .rating = 1, /* lowest valid rating*/ .read = jiffies_read, - .mask = 0xffffffff, /*32bits*/ + .mask = CLOCKSOURCE_MASK(32), .mult = NSEC_PER_JIFFY << JIFFIES_SHIFT, /* details above */ .shift = JIFFIES_SHIFT, .max_cycles = 10,