From: Al Viro Date: Thu, 26 Jul 2007 16:34:49 +0000 (+0100) Subject: use CLOCKSOURCE_MASK() instead of too large constant X-Git-Tag: v2.6.23-rc2~245 X-Git-Url: https://err.no/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=712aaa1cb1c0a83e5ffb5376e1d7ee3dd539f4e4;p=linux-2.6 use CLOCKSOURCE_MASK() instead of too large constant Signed-off-by: Al Viro Signed-off-by: Linus Torvalds --- diff --git a/arch/ia64/kernel/time.c b/arch/ia64/kernel/time.c index 1169d46126..6c0e9e2e1b 100644 --- a/arch/ia64/kernel/time.c +++ b/arch/ia64/kernel/time.c @@ -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, diff --git a/drivers/char/hpet.c b/drivers/char/hpet.c index 9a2694e5f8..77bf4aa217 100644 --- a/drivers/char/hpet.c +++ b/drivers/char/hpet.c @@ -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,