clocksource: rockchip_timer: clock source 32-bit mode
author黄涛 <huangtao@rock-chips.com>
Mon, 2 Dec 2013 02:38:19 +0000 (10:38 +0800)
committer黄涛 <huangtao@rock-chips.com>
Mon, 2 Dec 2013 02:38:19 +0000 (10:38 +0800)
drivers/clocksource/rockchip_timer.c

index 8c5291fa0e47e1e1c6c2e61975cdb70ecab9a603..124869d37368fd796ac49770273d213550ab647a 100644 (file)
@@ -180,14 +180,14 @@ static struct local_timer_ops rk_local_timer_ops __cpuinitdata = {
 
 static cycle_t rk_timer_read(struct clocksource *cs)
 {
-       return ~rk_timer_read_current_value64(cs_timer.base);
+       return ~rk_timer_read_current_value(cs_timer.base);
 }
 
 static struct clocksource rk_timer_clocksource = {
        .name   = TIMER_NAME,
        .rating = 200,
        .read   = rk_timer_read,
-       .mask   = CLOCKSOURCE_MASK(64),
+       .mask   = CLOCKSOURCE_MASK(32),
        .flags  = CLOCK_SOURCE_IS_CONTINUOUS,
 };