pmu: add adb_autopoll_block() and adb_autopoll_unblock() functions
commitcf093b0772ad43538ba45c1dececec7113ab3d03
authorMark Cave-Ayland <mark.cave-ayland@ilande.co.uk>
Tue, 23 Jun 2020 20:49:31 +0000 (23 21:49 +0100)
committerMark Cave-Ayland <mark.cave-ayland@ilande.co.uk>
Fri, 26 Jun 2020 09:13:52 +0000 (26 10:13 +0100)
tree342b458f6ca966c3b8c50ea6bcd4eec6575915a5
parent45c9d721ef9ea4e50dbede53bc97922767db70b8
pmu: add adb_autopoll_block() and adb_autopoll_unblock() functions

Ensure that the PMU buffer is protected from autopoll requests overwriting
its contents whilst existing PMU requests are in progress.

Signed-off-by: Mark Cave-Ayland <mark.cave-ayland@ilande.co.uk>
Tested-by: Finn Thain <fthain@telegraphics.com.au>
Acked-by: Laurent Vivier <laurent@vivier.eu>
Message-Id: <20200623204936.24064-18-mark.cave-ayland@ilande.co.uk>
hw/misc/macio/pmu.c