summaryrefslogtreecommitdiff
path: root/drivers/clocksource/scx200_hrt.c
diff options
context:
space:
mode:
authorAlexander Shishkin <alexander.shishkin@linux.intel.com>2016-03-10 18:21:14 +0200
committerAlexander Shishkin <alexander.shishkin@linux.intel.com>2016-04-08 16:11:59 +0300
commita45ff6ed742cdfdb3cdebee83d19ab1c00d91fcc (patch)
treef87e814284007aab0e97cc61d9c9209532b8bc50 /drivers/clocksource/scx200_hrt.c
parentf18a9531f6da9aba2920a3a5f166dba5a20592a0 (diff)
downloadlinux-a45ff6ed742cdfdb3cdebee83d19ab1c00d91fcc.tar.gz
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>
Diffstat (limited to 'drivers/clocksource/scx200_hrt.c')
0 files changed, 0 insertions, 0 deletions