]> asedeno.scripts.mit.edu Git - linux.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)
committerKevin Hilman <khilman@baylibre.com>
Mon, 5 Aug 2019 20:39:55 +0000 (13:39 -0700)
commit3a760d986568b67d1f8411dab64608075817b90d
tree7fd9d7521c34e98ed9b2c4b8e5ca24debd9afd9e
parent5f9e832c137075045d15cd6899ab0505cfb2ca4b
soc: amlogic: meson-clk-measure: protect measure with a mutex

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>
drivers/soc/amlogic/meson-clk-measure.c