commit | d4beecfa33c1cd8ecc688ce472594284216cf541 | [log] [tgz] |
---|---|---|
author | Matthew Barth <msbarth@us.ibm.com> | Tue Apr 03 15:50:22 2018 -0500 |
committer | Matt Spinler <spinler@us.ibm.com> | Fri Apr 13 14:33:41 2018 +0000 |
tree | fbb9b6316b245850382a45fe79712aff1e680cb1 | |
parent | 8729e44a35e0b78c6119c769156cb46bd0987415 [diff] |
No retries when adding a purposely removed sensor When a sensor is removed due to a removal return code being received during a read, no read retries should be done when attempting to re-add it. This requires the sensor to be successful in its first read attempted when being re-added and keeps the re-adding of purposely removed sensors from consuming up to 1 second during the re-add attempt. Tested: A removed sensor is attempted to be read once on re-add Change-Id: Ia7eb463deb569c9d10883632e017b4dd05413854 Signed-off-by: Matthew Barth <msbarth@us.ibm.com>
Exposes generic hwmon entries as DBus objects.
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.