WSL2-Linux-Kernel/arch/arm
Doug Brown d4dcde11bf ARM: mmp: fix timer_read delay
[ Upstream commit e348b4014c ]

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: 49cbe78637 ("[ARM] pxa: add base support for Marvell's PXA168 processor line")
Signed-off-by: Doug Brown <doug@schmorgal.com>
Link: https://lore.kernel.org/r/20221204005117.53452-3-doug@schmorgal.com
Signed-off-by: Arnd Bergmann <arnd@arndb.de>
Signed-off-by: Sasha Levin <sashal@kernel.org>
2022-12-31 13:14:00 +01:00
..
boot ARM: dts: turris-omnia: Add switch port 6 node 2022-12-31 13:13:59 +01:00
common ARM: sharpsl_param: work around -Wstringop-overread warning 2021-10-05 15:44:56 +02:00
configs ARM: mxs_defconfig: Enable the framebuffer 2022-07-12 16:35:12 +02:00
crypto crypto: blake2s - remove shash module 2022-08-17 14:24:19 +02:00
include ARM: 9266/1: mm: fix no-MMU ZERO_PAGE() implementation 2022-12-14 11:37:15 +01:00
kernel ARM: remove some dead code 2022-08-17 14:24:23 +02:00
lib ARM: findbit: fix overflowing offset 2022-08-17 14:23:05 +02:00
mach-actions
mach-alpine
mach-artpec
mach-asm9260
mach-aspeed
mach-at91 ARM: at91: pm: avoid soft resetting AC DLL 2022-11-26 09:24:34 +01:00
mach-axxia ARM: Fix refcount leak in axxia_boot_secondary 2022-06-29 09:03:31 +02:00
mach-bcm ARM: bcm: Fix refcount leak in bcm_kona_smc_init 2022-08-17 14:23:06 +02:00
mach-berlin
mach-clps711x
mach-cns3xxx ARM: cns3xxx: Fix refcount leak in cns3xxx_init 2022-06-29 09:03:31 +02:00
mach-davinci ARM: davinci: da850-evm: Avoid NULL pointer dereference 2022-04-20 09:34:20 +02:00
mach-digicolor
mach-dove ARM: dove: mark 'putc' as inline 2021-10-05 15:40:38 +02:00
mach-ep93xx
mach-exynos ARM: exynos: Fix refcount leak in exynos_map_pmu 2022-06-29 09:03:30 +02:00
mach-footbridge
mach-gemini
mach-highbank
mach-hisi ARM: hisi: Add missing of_node_put after of_find_compatible_node 2022-06-09 10:22:42 +02:00
mach-imx ARM: imx: register reset controller from a platform driver 2021-10-15 09:38:06 +08:00
mach-integrator
mach-iop32x ARM: iop32x: offset IRQ numbers by 1 2022-04-08 14:24:11 +02:00
mach-ixp4xx
mach-keystone
mach-lpc18xx
mach-lpc32xx
mach-mediatek arm: mediatek: select arch timer for mt7629 2022-06-09 10:23:07 +02:00
mach-meson ARM: meson: Fix refcount leak in meson_smp_prepare_cpus 2022-07-12 16:35:11 +02:00
mach-milbeaut
mach-mmp ARM: mmp: fix timer_read delay 2022-12-31 13:14:00 +01:00
mach-moxart
mach-mstar ARM: mstar: Select HAVE_ARM_ARCH_TIMER 2022-04-08 14:22:46 +02:00
mach-mv78xx0
mach-mvebu
mach-mxs ARM: mxs: fix memory leak in mxs_machine_init() 2022-12-02 17:41:04 +01:00
mach-nomadik
mach-npcm
mach-nspire
mach-omap1 ARM: OMAP1: clock: Fix UART rate reporting algorithm 2022-06-09 10:22:42 +02:00
mach-omap2 ARM: OMAP2+: Fix refcount leak in omap3xxx_prm_late_init 2022-08-17 14:23:09 +02:00
mach-orion5x
mach-oxnas
mach-pxa ARM: pxa: maybe fix gpio lookup tables 2022-06-09 10:23:29 +02:00
mach-qcom
mach-rda
mach-realtek
mach-realview
mach-rockchip
mach-rpc
mach-s3c ARM: 9187/1: JIVE: fix return value of __setup handler 2022-04-08 14:24:13 +02:00
mach-s5pv210
mach-sa1100
mach-shmobile ARM: shmobile: rcar-gen2: Increase refcount for new reference 2022-08-17 14:23:04 +02:00
mach-socfpga ARM: socfpga: fix missing RESET_CONTROLLER 2022-02-16 12:56:19 +01:00
mach-spear
mach-sti
mach-stm32
mach-sunxi
mach-tegra
mach-uniphier
mach-ux500
mach-versatile
mach-vexpress ARM: versatile: Add missing of_node_put in dcscb_init 2022-06-09 10:22:42 +02:00
mach-vt8500
mach-zynq cpufreq: zynq: Fix refcount leak in zynq_get_revision 2022-08-17 14:23:09 +02:00
mm ARM: 9266/1: mm: fix no-MMU ZERO_PAGE() implementation 2022-12-14 11:37:15 +01:00
net
nwfpe
plat-omap
plat-orion
plat-pxa
plat-versatile
probes ARM: 9214/1: alignment: advance IT state after emulating Thumb instruction 2022-07-21 21:24:12 +02:00
tools
vdso
vfp
xen xen/arm: Fix race in RB-tree based P2M accounting 2022-07-07 17:53:32 +02:00
Kbuild
Kconfig ARM: Drop CMDLINE_* dependency on ATAGS 2022-10-26 12:35:00 +02:00
Kconfig-nommu
Kconfig.assembler
Kconfig.debug ARM: imx: rename DEBUG_IMX21_IMX27_UART to DEBUG_IMX27_UART 2022-01-27 11:04:29 +01:00
Makefile ARM: 9156/1: drop cc-option fallbacks for architecture selection 2021-11-18 19:17:13 +01:00