aboutsummaryrefslogtreecommitdiff
path: root/drivers/fpga/fpga-mgr.c
diff options
context:
space:
mode:
authorDoug Brown <[email protected]>2022-12-03 16:51:17 -0800
committerArnd Bergmann <[email protected]>2022-12-04 13:11:40 +0100
commite348b4014c31041e13ff370669ba3348c4d385e3 (patch)
tree30dfcc77efd3a3f8e2a2be9da5d6aa467de63797 /drivers/fpga/fpga-mgr.c
parent1d9ae5a1356a61cef94b34e4ccb28986955e2fd2 (diff)
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: 49cbe78637eb ("[ARM] pxa: add base support for Marvell's PXA168 processor line") Signed-off-by: Doug Brown <[email protected]> Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Arnd Bergmann <[email protected]>
Diffstat (limited to 'drivers/fpga/fpga-mgr.c')
0 files changed, 0 insertions, 0 deletions