commit | 4f45e429cc3d99b5fb2666e30395d116e474efec | [log] [tgz] |
---|---|---|
author | Zbigniew Kurzynski <zbigniew.kurzynski@intel.com> | Tue Jun 09 12:42:15 2020 +0200 |
committer | Zbigniew Kurzynski <zbigniew.kurzynski@intel.com> | Wed Jun 17 06:40:50 2020 +0000 |
tree | cecb336617e3a238c6ed958b3947af9431c73245 | |
parent | 68b14e6a47f0a491bd348b85f1cf9188d119f3bb [diff] |
Refactoring of the updateValue method Purpose of these changes is to make the method created to update any dbus parameters, not only the `Value`, available for all classes that inherit from the Sensor class. This commit does following changes: * method areDifferent is moved from the CPUSensor class to the Sensor. * method genericUpdateValue is renamed to updateProperty and moved from the CPUSensor class to the Sensor. * method updateValue is changed to utilize the updateProperty method. Tested: Manual tests where done on CPUSensor. No differences detected comparing to results taken before these changes. Signed-off-by: Zbigniew Kurzynski <zbigniew.kurzynski@intel.com> Change-Id: I736526c0a128ffe094e156018fca6a883659f82a
dbus-sensors is a collection of sensor applications that provide the xyz.openbmc_project.Sensor collection of interfaces. They read sensor values from hwmon, d-bus, or direct driver access to provide readings. Some advance non-sensor features such as fan presence, pwm control, and automatic cpu detection (x86) are also supported.
runtime re-configurable from d-bus (entity-manager or the like)
isolated: each sensor type is isolated into its own daemon, so a bug in one sensor is unlikely to affect another, and single sensor modifications are possible
async single-threaded: uses sdbusplus/asio bindings
multiple data inputs: hwmon, d-bus, direct driver access