commit | e9764ff47f548c7c2a0e1205a94b75afdf27a993 | [log] [tgz] |
---|---|---|
author | Patrick Venture <venture@google.com> | Thu Jan 24 14:11:45 2019 -0800 |
committer | Patrick Venture <venture@google.com> | Fri Jan 25 08:27:49 2019 -0800 |
tree | 7edb4a7f2bfee36ca92e119dcf8e752d77c80aad | |
parent | 9a7ef7c639a5cb538759cf13d078282d69ae6111 [diff] |
sensor: set scale to 0 in constructor The _scale member will not be used without ::addValue() being called first, however, initialize it regardless to 0. Change-Id: I712e9192500a8a58db03bcbbaf0f0d736f1dfd23 Signed-off-by: Patrick Venture <venture@google.com>
Exposes generic hwmon entries as DBus objects. More information can be found at Sensor Architecture
To build this package, do the following steps: 1. ./bootstrap.sh 2. ./configure ${CONFIGURE_FLAGS} 3. make To clean the repository run `./bootstrap.sh clean`.
To enable the use of Linux features like cgroups prioritization and udev/systemd control, one instance of phosphor-hwmon is intended to be run per hwmon sysfs class instance. This requires an algorithm for selecting a stable, well-known D-Bus busname. The algorithm is <PREFIX>-<ID>.Hwmon<N> where PREFIX is an autoconf configurable prefix (BUSNAME_PREFIX, xyz.openbmc_project by default), ID is a std::hash of the /sys/devices path backing the hwmon class instance, and N is the implemented phosphor-hwmon D-Bus API version.