Read default power mode & IPS parameters from DBus
If the power mode or idle power saver parameters have never been set,
they will be read from a set of default parameters that are on DBus.
This allows individual systems to have different default settings.
Mode/IPS parameters moved from Settings to OCC.Control
Code verified on Everest hardware with multiple scenarios including
host reboots, BMC reboots, OCC resets.
Change-Id: Id02613455db7f382791ff37c7dc420dbea1e0906
Signed-off-by: Chris Cain <cjcain@us.ibm.com>
diff --git a/occ_status.hpp b/occ_status.hpp
index 32041c7..6dab7dd 100644
--- a/occ_status.hpp
+++ b/occ_status.hpp
@@ -86,7 +86,7 @@
) :
Interface(utils::getBus(), getDbusPath(path).c_str(), true),
- path(path), callBack(callBack), instance(getInstance(path)),
+ path(path), managerCallBack(callBack), instance(getInstance(path)),
manager(managerRef),
#ifdef POWER10
pmode(powerModeRef),
@@ -206,7 +206,7 @@
/** @brief Callback handler to be invoked during property change.
* This is a handler in Manager class
*/
- std::function<void(bool)> callBack;
+ std::function<void(bool)> managerCallBack;
/** @brief OCC instance number. Ex, 0,1, etc */
unsigned int instance;