diff options
author | Al Viro <viro@ftp.linux.org.uk> | 2007-07-26 12:34:49 -0400 |
---|---|---|
committer | Linus Torvalds <torvalds@woody.linux-foundation.org> | 2007-07-26 14:11:57 -0400 |
commit | 712aaa1cb1c0a83e5ffb5376e1d7ee3dd539f4e4 (patch) | |
tree | 774660d2b396772d084ac4dccc44c37888455206 | |
parent | d5c03726a7d0700222fe3c134c6ef834040974c5 (diff) |
use CLOCKSOURCE_MASK() instead of too large constant
Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
-rw-r--r-- | arch/ia64/kernel/time.c | 2 | ||||
-rw-r--r-- | drivers/char/hpet.c | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/arch/ia64/kernel/time.c b/arch/ia64/kernel/time.c index 1169d46126ac..6c0e9e2e1b82 100644 --- a/arch/ia64/kernel/time.c +++ b/arch/ia64/kernel/time.c | |||
@@ -52,7 +52,7 @@ static struct clocksource clocksource_itc = { | |||
52 | .name = "itc", | 52 | .name = "itc", |
53 | .rating = 350, | 53 | .rating = 350, |
54 | .read = itc_get_cycles, | 54 | .read = itc_get_cycles, |
55 | .mask = 0xffffffffffffffff, | 55 | .mask = CLOCKSOURCE_MASK(64), |
56 | .mult = 0, /*to be caluclated*/ | 56 | .mult = 0, /*to be caluclated*/ |
57 | .shift = 16, | 57 | .shift = 16, |
58 | .flags = CLOCK_SOURCE_IS_CONTINUOUS, | 58 | .flags = CLOCK_SOURCE_IS_CONTINUOUS, |
diff --git a/drivers/char/hpet.c b/drivers/char/hpet.c index 9a2694e5f8b9..77bf4aa217a8 100644 --- a/drivers/char/hpet.c +++ b/drivers/char/hpet.c | |||
@@ -73,7 +73,7 @@ static struct clocksource clocksource_hpet = { | |||
73 | .name = "hpet", | 73 | .name = "hpet", |
74 | .rating = 250, | 74 | .rating = 250, |
75 | .read = read_hpet, | 75 | .read = read_hpet, |
76 | .mask = 0xffffffffffffffff, | 76 | .mask = CLOCKSOURCE_MASK(64), |
77 | .mult = 0, /*to be caluclated*/ | 77 | .mult = 0, /*to be caluclated*/ |
78 | .shift = 10, | 78 | .shift = 10, |
79 | .flags = CLOCK_SOURCE_IS_CONTINUOUS, | 79 | .flags = CLOCK_SOURCE_IS_CONTINUOUS, |