Show
Ignore:
Timestamp:
12/10/07 14:30:22 (4 years ago)
Author:
khali
Message:

libsensors: No longer depend on libsysfs.
Instead, access 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.

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • lm-sensors/branches/lm-sensors-3.0.0/lib/Module.mk

    r5047 r5067  
    6060# How to create the shared library 
    6161$(MODULE_DIR)/$(LIBSHLIBNAME): $(LIBSHOBJECTS) 
    62         $(CC) -shared -Wl,-soname,$(LIBSHSONAME) -o $@ $^ -lc -lm -lsysfs 
     62        $(CC) -shared -Wl,-soname,$(LIBSHSONAME) -o $@ $^ -lc -lm 
    6363 
    6464$(MODULE_DIR)/$(LIBSHSONAME): $(MODULE_DIR)/$(LIBSHLIBNAME)