summaryrefslogtreecommitdiffstats
path: root/block/noop-iosched.c
diff options
context:
space:
mode:
authorBoris BREZILLON <boris.brezillon@free-electrons.com>2016-03-30 22:03:27 +0200
committerThierry Reding <thierry.reding@gmail.com>2016-05-17 14:44:59 +0200
commit459a25afe97cb3d7f978b90c881f4d7aac8fb755 (patch)
tree233902a29b5d0f418de168ffe531149b997cbcf4 /block/noop-iosched.c
parent4ff66efd59102280a71d432c9f0e89cdaf66b849 (diff)
downloadtalos-op-linux-459a25afe97cb3d7f978b90c881f4d7aac8fb755.tar.gz
talos-op-linux-459a25afe97cb3d7f978b90c881f4d7aac8fb755.zip
pwm: Get rid of pwm->lock
PWM devices are not protected against concurrent accesses. The lock in struct pwm_device might let PWM users think it is, but it's actually only protecting the enabled state. Removing this lock should be fine as long as all PWM users are aware that accesses to the PWM device have to be serialized, which seems to be the case for all of them except the sysfs interface. Patch the sysfs code by adding a lock to the pwm_export struct and making sure it's taken for all relevant accesses to the exported PWM device. Signed-off-by: Boris Brezillon <boris.brezillon@free-electrons.com> Signed-off-by: Thierry Reding <thierry.reding@gmail.com>
Diffstat (limited to 'block/noop-iosched.c')
0 files changed, 0 insertions, 0 deletions
OpenPOWER on IntegriCloud