commit | ee73f5bdd1996ee9d4f65ddbc69804ea0b1b59e9 | [log] [tgz] |
---|---|---|
author | James Feist <james.feist@linux.intel.com> | Wed Aug 01 16:31:42 2018 -0700 |
committer | James Feist <james.feist@linux.intel.com> | Mon Oct 22 09:18:28 2018 -0700 |
tree | 6563db6a97d9d3354aaffee8a0bcee6e9882e723 | |
parent | 0fe4cb34b5292a559693407ebc0b38645c6c19d6 [diff] |
Make hwmon work with double or int64 interface Deduce type based on interface using decltype and if it is double apply scale to the value. Tested-by: Noticed that on dbus using busctl and debug server that doubles were produced and scaled. Also verifed that hwmon still produced int64_t values when building with current phosphor-dbus-interfaces. Change-Id: I00e21d5ef0ea6cee0eb30baa0b39cde95e7f4a86 Signed-off-by: James Feist <james.feist@linux.intel.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.