[PATCH] libsensors: No longer depend on libsysfs

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

 



Jean Delvare wrote:
> Hi Hans,
> 
> On Thu, 29 Nov 2007 19:16:39 +0100, Hans de Goede wrote:
>> Jean Delvare wrote:
>>> Hi all,
>>>
>>> Here is a proposed patch to make libsensors no longer depend on
>>> libsysfs. Instead, it accesses sysfs directly, using 3 embedded helper
>>> functions. My motivations for doing this are:
>>> * As far as I know, libsysfs is no longer maintained.
>>> * libsysfs does much more than we need. For example, when asking for a
>>>   device attribute list, libsysfs will read the contents and permissions
>>>   of all attributes. Not only does this waste CPU cycles per se, but in
>>>   the case of hwmon driver it also triggers register reads, which can be
>>>   slow for SMBus chips.
>>> * libsysfs enforces the difference between devices and class devices,
>>>   while future changes will be easier if we can handle both types alike.
>>>
>> Good work!
>>
>> I'm afraid I don't have the time to review this atm though, any other takers?
> 
> If you have the possibility to test the patch, that would be
> appreciated as well, and less time-consuming than a review. Different
> kernel versions and configurations can make the sysfs tree look a bit
> different. Also, i2c and non-i2c chips have different code paths. I've
> tested as much as I could on my systems, but more testing can't hurt.
> 

I've just given it a test run on my abituguru machine, works fine. Tomorrow 
I'll give it a test run on a FSC machine.

If you're reasonably sure this patch is ok, I could put it in the Fedora 
Rawhide / devel package for some greater exposure, then we can be pretty sure 
there will be plenty of testing before we release 3.0.1 .

Regards,

Hans




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

  Powered by Linux