Skip to content
Snippets Groups Projects
Unverified Commit e348b401 authored by Doug Brown's avatar Doug Brown Committed by Arnd Bergmann
Browse files

ARM: mmp: fix timer_read delay


timer_read() was using an empty 100-iteration loop to wait for the
TMR_CVWR register to capture the latest timer counter value. The delay
wasn't long enough. This resulted in CPU idle time being extremely
underreported on PXA168 with CONFIG_NO_HZ_IDLE=y.

Switch to the approach used in the vendor kernel, which implements the
capture delay by reading TMR_CVWR a few times instead.

Fixes: 49cbe786 ("[ARM] pxa: add base support for Marvell's PXA168 processor line")
Signed-off-by: default avatarDoug Brown <doug@schmorgal.com>
Link: https://lore.kernel.org/r/20221204005117.53452-3-doug@schmorgal.com


Signed-off-by: default avatarArnd Bergmann <arnd@arndb.de>
parent 1d9ae5a1
No related merge requests found
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment