Skip to contentSkip to conversation

use CLOCKSOURCE_MASK() instead of too large constant

PATCH New Al Viro 1 participant 1 message Jul 26, 2007

Subsystems (2)
lore
Share & tools
lore

Al Viro

author
#0 lore raw

PATCH 1/1 use CLOCKSOURCE_MASK() instead of too large constant

---
 arch/ia64/kernel/time.c |    2 +-
 drivers/char/hpet.c     |    2 +-
 2 files changed, 2 insertions(+), 2 deletions(-)
arch/ia64/kernel/time.c +1 -1
index 1169d46..6c0e9e2 100644
@@ -52,7 +52,7 @@ static struct clocksource clocksource_itc = {
         .name           = "itc",
         .rating         = 350,
         .read           = itc_get_cycles,
-        .mask           = 0xffffffffffffffff,
+        .mask           = CLOCKSOURCE_MASK(64),
         .mult           = 0, /*to be caluclated*/
         .shift          = 16,
         .flags          = CLOCK_SOURCE_IS_CONTINUOUS,
drivers/char/hpet.c +1 -1
index 9a2694e..77bf4aa 100644
@@ -73,7 +73,7 @@ static struct clocksource clocksource_hpet = {
         .name           = "hpet",
         .rating         = 250,
         .read           = read_hpet,
-        .mask           = 0xffffffffffffffff,
+        .mask           = CLOCKSOURCE_MASK(64),
         .mult           = 0, /*to be caluclated*/
         .shift          = 10,
         .flags          = CLOCK_SOURCE_IS_CONTINUOUS,
Signature · 1 line
1.5.3.GIT