Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > linux.kernel > #1328256 > unrolled thread

[PATCH] jiffies: use CLOSKOURCE_MASK instead of constant

Started byAlexander Kuleshov <kuleshovmail@gmail.com>
First post2016-02-06 09:00 +0100
Last post2016-02-06 09:00 +0100
Articles 1 — 1 participant

Back to article view | Back to linux.kernel


Contents

  [PATCH] jiffies: use CLOSKOURCE_MASK instead of constant Alexander Kuleshov <kuleshovmail@gmail.com> - 2016-02-06 09:00 +0100

#1328256 — [PATCH] jiffies: use CLOSKOURCE_MASK instead of constant

FromAlexander Kuleshov <kuleshovmail@gmail.com>
Date2016-02-06 09:00 +0100
Subject[PATCH] jiffies: use CLOSKOURCE_MASK instead of constant
Message-ID<qZ5WG-4bc-5@gated-at.bofh.it>
The CLOCKSOURCE_MASK(32) macro expands to the same value, but
makes code more readable.

Signed-off-by: Alexander Kuleshov <kuleshovmail@gmail.com>
---
 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,
-- 
2.7.0.25.gfc10eb5

[toc] | [standalone]


Back to top | Article view | linux.kernel


csiph-web