diff options
author | Eddie James <eajames@us.ibm.com> | 2017-09-14 13:17:17 -0500 |
---|---|---|
committer | Brad Bishop <bradleyb@fuzziesquirrel.com> | 2017-12-12 04:48:00 +0000 |
commit | 482e31ff8e43e0fefbd697b1985795c4d35eec74 (patch) | |
tree | 9db1fcac3446e4d6221b8609e92f68a57d4bb0a0 /occ_errors.hpp | |
parent | 30417a15fa35e26d5127f12e0a85c3fe74eff0d0 (diff) | |
download | openpower-occ-control-482e31ff8e43e0fefbd697b1985795c4d35eec74.tar.gz openpower-occ-control-482e31ff8e43e0fefbd697b1985795c4d35eec74.zip |
Add watches for throttling reported by the OCC
Add Error objects to watch the sysfs entries provided by the OCC hwmon
driver that report various types of throttling. Also needed to add a
boolean input to the Error callback interface.
Resolves openbmc/openbmc#1821
Change-Id: I4425770a92ace0f73024b3dc4c577ce46957a62a
Signed-off-by: Eddie James <eajames@us.ibm.com>
Diffstat (limited to 'occ_errors.hpp')
-rw-r--r-- | occ_errors.hpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/occ_errors.hpp b/occ_errors.hpp index 070e72c..12ae925 100644 --- a/occ_errors.hpp +++ b/occ_errors.hpp @@ -32,7 +32,7 @@ class Error */ Error(EventPtr& event, const fs::path& file, - std::function<void()> callBack = nullptr) : + std::function<void(bool)> callBack = nullptr) : event(event), file(fs::path(DEV_PATH) / file), callBack(callBack) @@ -97,7 +97,7 @@ class Error const fs::path file; /** @brief Optional function to call on error scenario */ - std::function<void()> callBack; + std::function<void(bool)> callBack; /** @brief Reads file data * |