diff options
author | Jean Delvare <khali@linux-fr.org> | 2007-02-14 21:15:03 +0100 |
---|---|---|
committer | Jean Delvare <khali@arrakis.delvare> | 2007-02-14 21:15:03 +0100 |
commit | 7f999aa726ded3fd10d7619945e8b7d7e39833b3 (patch) | |
tree | cb99dfde0b69cf076810eb3c0d46aac54449e5e1 /drivers/hwmon/sis5595.c | |
parent | hwmon: Drop unused mutexes in two drivers (diff) | |
download | linux-7f999aa726ded3fd10d7619945e8b7d7e39833b3.tar.xz linux-7f999aa726ded3fd10d7619945e8b7d7e39833b3.zip |
hwmon: Simplify the locking model of two drivers
Many hardware monitoring drivers use two different mutexes, one to
protect their per-device data structure, and one to protect the
access to the device registers. These mutexes are essentially
redundant, as the drivers are transfering values between the device
registers and the data cache, so they almost always end up holding
both mutexes at the same time. Using a single mutex will make the
code more simple and faster.
I am changing only two of the affected drivers here, the authors
of the other affected drivers are welcome to submit similar patches
if they want.
Signed-off-by: Jean Delvare <khali@linux-fr.org>
Diffstat (limited to 'drivers/hwmon/sis5595.c')
0 files changed, 0 insertions, 0 deletions