linux_dsm_epyc7002/drivers/hwtracing/intel_th
Alexander Shishkin a45ff6ed74 intel_th: msu: Serialize enabling/disabling
In order to guarantee that readers don't race with trace enabling,
both should happen under the same mutex. Having two mutexes seems
like an overkill, considering that because of the above, they'll
have to be acquired together, around trace enabling and char device
opening.

This patch makes both buffer accesses and readers serialize on
msc::buf_mutex and makes sure that 'enabled' flag accesses are also
serialized on it.

Signed-off-by: Alexander Shishkin <alexander.shishkin@linux.intel.com>
Reviewed-by: Laurent Fert <laurent.fert@intel.com>
2016-04-08 16:11:59 +03:00
..
core.c intel_th: Fix activating a subdevice without a driver 2016-04-08 16:11:58 +03:00
debug.c intel_th: Add driver infrastructure for Intel(R) Trace Hub devices 2015-10-04 20:28:58 +01:00
debug.h intel_th: Add driver infrastructure for Intel(R) Trace Hub devices 2015-10-04 20:28:58 +01:00
gth.c intel_th: Update scratchpad bits according to enabled output activity 2016-02-20 14:09:14 -08:00
gth.h intel_th: Update scratchpad bits according to enabled output activity 2016-02-20 14:09:14 -08:00
intel_th.h intel_th: Fix activating a subdevice without a driver 2016-04-08 16:11:58 +03:00
Kconfig intel_th: Depend on HAS_IOMEM 2016-02-20 14:09:14 -08:00
Makefile intel_th: Add PTI output driver 2015-10-04 20:28:58 +01:00
msu.c intel_th: msu: Serialize enabling/disabling 2016-04-08 16:11:59 +03:00
msu.h intel_th: Add Memory Storage Unit driver 2015-10-04 20:28:58 +01:00
pci.c intel_th: Set root device's drvdata early 2016-02-20 14:09:14 -08:00
pti.c intel_th: pti: Create sysfs attributes using core driver's facility 2016-04-08 16:11:57 +03:00
pti.h intel_th: Add PTI output driver 2015-10-04 20:28:58 +01:00
sth.c intel_th: sth: Sanitize packet callback's return values 2016-02-20 14:09:14 -08:00
sth.h intel_th: Add Software Trace Hub driver 2015-10-04 20:28:58 +01:00