Skip to contentSkip to conversation

jiffies: use CLOCKSOURCE_MASK instead of constant

PATCH In review Alexander Kuleshov 2 participants 2 messages Feb 6, 2016 – Feb 25, 2016

lore
Share & tools
lore
#0 lore raw

PATCH v2 1/1 jiffies: use CLOCKSOURCE_MASK instead of constant

The CLOCKSOURCE_MASK(32) macro expands to the same value, but makes code more readable.

---

v2: typo fixed in commit message

 kernel/time/jiffies.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
kernel/time/jiffies.c +1 -1
index 347fecf..555e21f 100644
@@ -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,
Signature · 1 line
2.7.0.25.gfc10eb5