mirror of
https://github.com/torvalds/linux.git
synced 2024-11-24 13:11:40 +00:00
0cb1d9c845
The register abstraction has wrappers around both the normal writel() and its writel_relaxed() counterpart, but this has led to a lot of users ending up with the relaxed version. There is sometimes a need to intentionally pick the relaxed accessor for performance critical functions, but I noticed that each hantro_reg_write() call also contains a non-relaxed readl(), which is typically much more expensive than a writel, so there is little benefit here but an added risk of missing a serialization against DMA. To make this behave like other interfaces, use the normal accessor by default and only provide the relaxed version as an alternative for performance critical code. hantro_postproc.c is the only place that used both the relaxed and normal writel, but this does not seem cricital either, so change it all to the normal ones. [hverkuil: fix function prototype alignment] Signed-off-by: Arnd Bergmann <arnd@arndb.de> Tested-by: Benjamin Gaignard <benjamin.gaignard@collabora.com> Signed-off-by: Hans Verkuil <hverkuil-cisco@xs4all.nl> Signed-off-by: Mauro Carvalho Chehab <mchehab@kernel.org> |
||
---|---|---|
.. | ||
allegro-dvt | ||
amlogic | ||
amphion | ||
aspeed | ||
atmel | ||
cadence | ||
chips-media | ||
intel | ||
marvell | ||
mediatek | ||
microchip | ||
nvidia | ||
nxp | ||
qcom | ||
renesas | ||
rockchip | ||
samsung | ||
st | ||
sunxi | ||
ti | ||
verisilicon | ||
via | ||
xilinx | ||
Kconfig | ||
m2m-deinterlace.c | ||
Makefile | ||
video-mux.c |