jiffies: Use CLOCKSOURCE_MASK instead of constant
authorAlexander Kuleshov <kuleshovmail@gmail.com>
Sat, 27 Feb 2016 03:14:14 +0000 (19:14 -0800)
committerThomas Gleixner <tglx@linutronix.de>
Sat, 27 Feb 2016 07:55:31 +0000 (08:55 +0100)
The CLOCKSOURCE_MASK(32) macro expands to the same value, but
makes code more readable.

Signed-off-by: Alexander Kuleshov <kuleshovmail@gmail.com>
Signed-off-by: John Stultz <john.stultz@linaro.org>
Cc: Prarit Bhargava <prarit@redhat.com>
Cc: Richard Cochran <richardcochran@gmail.com>
Link: http://lkml.kernel.org/r/1456542854-22104-3-git-send-email-john.stultz@linaro.org
Signed-off-by: Thomas Gleixner <tglx@linutronix.de>
kernel/time/jiffies.c

index 347fecf86a3fb2242e0a88b63975424f0293dde7..555e21f7b966c789f48ee4aa5fece85cc7db6768 100644 (file)
@@ -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,