]> git.baikalelectronics.ru Git - kernel.git/commit
msm: timer: compensate for timer shift in msm_read_timer_count
authorJeff Ohlstein <johlstei@codeaurora.org>
Fri, 17 Jun 2011 20:55:38 +0000 (13:55 -0700)
committerDavid Brown <davidb@codeaurora.org>
Fri, 17 Jun 2011 21:54:18 +0000 (14:54 -0700)
commit3d4d345bcea681441b07ee98dd88cd323104941c
tree8c8c95465a6e41412301b485b264303af119af29
parentc65a9f670049a4f80f9d28f1c49513ae8dc20a54
msm: timer: compensate for timer shift in msm_read_timer_count

Some msm targets have timers whose lower bits are unreliable. So, we
present our timers as lower frequency than they actually are, and ignore
the bottom 5 bits on such targets. This compensation was erroneously
removed from the msm_read_timer_count function, so restore it.

This was broken by a28631631 "msm: timer: SMP timer support for msm".

Signed-off-by: Jeff Ohlstein <johlstei@codeaurora.org>
arch/arm/mach-msm/timer.c