Send OCC mode change and IPS parms after reaching active state
Change is only applicable for POWER10 PowerVM systems.
Send mode change requests to OCC when PowerMode is changed.
Retry OCC command once, if a valid response is not received.
Tested: built openpower-occ-control successfully and verified
functionality on hardware.
Change-Id: If375f8abfdb2ad82937b8744096c2ccc471263d2
Signed-off-by: Chris Cain <cjcain@us.ibm.com>
diff --git a/occ_device.hpp b/occ_device.hpp
index 937c6dc..50dd11d 100644
--- a/occ_device.hpp
+++ b/occ_device.hpp
@@ -140,6 +140,9 @@
*/
static std::string getPathBack(const fs::path& path);
+ /** @brief Returns true if device represents the master OCC */
+ bool master() const;
+
private:
/** @brief Config value to be used to do bind and unbind */
const std::string config;
@@ -187,9 +190,6 @@
return;
}
- /** @brief Returns if device represents the master OCC */
- bool master() const;
-
/** @brief callback for the proc temp throttle event
*
* @param[in] error - True if an error is reported, false otherwise