Commit 712aaa1c authored by Al Viro's avatar Al Viro Committed by Linus Torvalds

use CLOCKSOURCE_MASK() instead of too large constant

Signed-off-by: default avatarAl Viro <viro@zeniv.linux.org.uk>
Signed-off-by: default avatarLinus Torvalds <torvalds@linux-foundation.org>
parent d5c03726
...@@ -52,7 +52,7 @@ static struct clocksource clocksource_itc = { ...@@ -52,7 +52,7 @@ static struct clocksource clocksource_itc = {
.name = "itc", .name = "itc",
.rating = 350, .rating = 350,
.read = itc_get_cycles, .read = itc_get_cycles,
.mask = 0xffffffffffffffff, .mask = CLOCKSOURCE_MASK(64),
.mult = 0, /*to be caluclated*/ .mult = 0, /*to be caluclated*/
.shift = 16, .shift = 16,
.flags = CLOCK_SOURCE_IS_CONTINUOUS, .flags = CLOCK_SOURCE_IS_CONTINUOUS,
......
...@@ -73,7 +73,7 @@ static struct clocksource clocksource_hpet = { ...@@ -73,7 +73,7 @@ static struct clocksource clocksource_hpet = {
.name = "hpet", .name = "hpet",
.rating = 250, .rating = 250,
.read = read_hpet, .read = read_hpet,
.mask = 0xffffffffffffffff, .mask = CLOCKSOURCE_MASK(64),
.mult = 0, /*to be caluclated*/ .mult = 0, /*to be caluclated*/
.shift = 10, .shift = 10,
.flags = CLOCK_SOURCE_IS_CONTINUOUS, .flags = CLOCK_SOURCE_IS_CONTINUOUS,
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment