[patch 1/1] hwmon-pc87360 : avoid lock & unlock when data is valid and fresh

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



From:  Jim Cromie <jim.cromie at gmail.com>

Modifies pc87360_update_device() to avoid locking & unlocking
when data is not actually being resampled.  Also re-indented
the body of the function, removing the now extra tabs.

Signed-off-by:  Jim Cromie <jim.cromie at gmail.com>

----

patch applies over:
linux-2.6.16-rc1-mm4
+ hwmon-pc87360-use-sensor-attr-2.patch
+ hwmon-pc87360-sysfs-combo-callbacks.patch

or without the 2 patches, with  (offset -34 lines).

$ diffstat hwmon-pc87360-lock-only-when-sampling.patch
 pc87360.c |  158 
+++++++++++++++++++++++++++++++-------------------------------
 1 files changed, 79 insertions(+), 79 deletions(-)

-------------- next part --------------
A non-text attachment was scrubbed...
Name: hwmon-pc87360-lock-only-when-sampling.patch
Type: text/x-patch
Size: 6213 bytes
Desc: not available
Url : http://lists.lm-sensors.org/pipermail/lm-sensors/attachments/20060205/ebddd2e9/attachment.bin 


[Index of Archives]     [Linux Kernel]     [Linux Hardware Monitoring]     [Linux USB Devel]     [Linux Audio Users]     [Linux Kernel]     [Linux SCSI]     [Yosemite Backpacking]

  Powered by Linux