From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1756028AbcB0DOa (ORCPT ); Fri, 26 Feb 2016 22:14:30 -0500 Received: from mail-pf0-f171.google.com ([209.85.192.171]:36572 "EHLO mail-pf0-f171.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1755862AbcB0DO2 (ORCPT ); Fri, 26 Feb 2016 22:14:28 -0500 From: John Stultz To: lkml Cc: Alexander Kuleshov , Thomas Gleixner , Prarit Bhargava , Richard Cochran , Ingo Molnar , John Stultz Subject: [PATCH 2/2] jiffies: use CLOCKSOURCE_MASK instead of constant Date: Fri, 26 Feb 2016 19:14:14 -0800 Message-Id: <1456542854-22104-3-git-send-email-john.stultz@linaro.org> X-Mailer: git-send-email 1.9.1 In-Reply-To: <1456542854-22104-1-git-send-email-john.stultz@linaro.org> References: <1456542854-22104-1-git-send-email-john.stultz@linaro.org> Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org From: Alexander Kuleshov The CLOCKSOURCE_MASK(32) macro expands to the same value, but makes code more readable. Cc: Thomas Gleixner Cc: Prarit Bhargava Cc: Richard Cochran Cc: Ingo Molnar Signed-off-by: Alexander Kuleshov Signed-off-by: John Stultz --- 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, -- 1.9.1