]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit
soc: amlogic: meson-clk-measure: protect measure with a mutex
authorNeil Armstrong <narmstrong@baylibre.com>
Mon, 29 Jul 2019 13:02:17 +0000 (15:02 +0200)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Sat, 5 Oct 2019 11:13:32 +0000 (13:13 +0200)
commit3834667939004ea90da32f7498ec7c12993ab703
tree9664c7dad95b98b1dbc307108a0180e3f699bfef
parent55b520f85a97da77adbd88f6897cc8dbd84a8edf
soc: amlogic: meson-clk-measure: protect measure with a mutex

[ Upstream commit 3a760d986568b67d1f8411dab64608075817b90d ]

In order to protect clock measuring when multiple process asks for
a measure, protect the main measure function with mutexes.

Reviewed-by: Kevin Hilman <khilman@baylibre.com>
Reviewed-by: Martin Blumenstingl <martin.blumenstingl@googlemail.com>
Signed-off-by: Neil Armstrong <narmstrong@baylibre.com>
Signed-off-by: Kevin Hilman <khilman@baylibre.com>
Signed-off-by: Sasha Levin <sashal@kernel.org>
drivers/soc/amlogic/meson-clk-measure.c