From: 黄涛 Date: Mon, 2 Dec 2013 02:38:19 +0000 (+0800) Subject: clocksource: rockchip_timer: clock source 32-bit mode X-Git-Tag: firefly_0821_release~6467 X-Git-Url: http://demsky.eecs.uci.edu/git/?a=commitdiff_plain;h=4f9e05b983031a8505d91d00b001c02dc183fbf6;p=firefly-linux-kernel-4.4.55.git clocksource: rockchip_timer: clock source 32-bit mode --- diff --git a/drivers/clocksource/rockchip_timer.c b/drivers/clocksource/rockchip_timer.c index 8c5291fa0e47..124869d37368 100644 --- a/drivers/clocksource/rockchip_timer.c +++ b/drivers/clocksource/rockchip_timer.c @@ -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, };