diff options
author | Mathieu Poirier <mathieu.poirier@linaro.org> | 2016-05-03 11:33:53 -0600 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2016-05-03 14:59:30 -0700 |
commit | f74debbea0885ebb65fb3fa4e598323f40b03f5f (patch) | |
tree | e103d1b63fa7d710354ca2ec80e7ec38cf47fe60 /drivers/hwmon/ds620.c | |
parent | de5461970b3e9e19470b821f5feaa3235ceb35f5 (diff) | |
download | op-kernel-dev-f74debbea0885ebb65fb3fa4e598323f40b03f5f.zip op-kernel-dev-f74debbea0885ebb65fb3fa4e598323f40b03f5f.tar.gz |
coresight: tmc: getting rid of multiple read access
Allowing multiple readers to access the trace data simultaniously
via sysFS provides no shortage of opportunity for race condition,
mandates two variable to be maintained (drvdata::read_count and
drvdata::reading), makes the code complex and provide little
advantages, if any.
This patch streamlines the read process by restricting trace data
access to a single user. That way drvdata::read_count can
be eliminated and race conditions (along with faulty error handling)
in function tmc_open() and tmc_release() eliminated.
Signed-off-by: Mathieu Poirier <mathieu.poirier@linaro.org>
Reviewed-by: Suzuki K Poulose <suzuki.poulose@arm.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'drivers/hwmon/ds620.c')
0 files changed, 0 insertions, 0 deletions