summaryrefslogtreecommitdiffstats
path: root/control/actions.hpp
diff options
context:
space:
mode:
authorMatthew Barth <msbarth@us.ibm.com>2017-10-17 10:35:20 -0500
committerMatthew Barth <msbarth@us.ibm.com>2017-11-17 13:14:11 -0600
commit98726c4585d6743c0948ed0140835e438de1df79 (patch)
tree1404b5f2256972d96fb940687808f27f187a272d /control/actions.hpp
parent9df7475003a090aa104f033270533f106e004c57 (diff)
downloadphosphor-fan-presence-98726c4585d6743c0948ed0140835e438de1df79.tar.gz
phosphor-fan-presence-98726c4585d6743c0948ed0140835e438de1df79.zip
Set floor to default on missing owner action
An action to set the fan floor speed to the defined default fan floor speed when any services associated to a given group of sensors have terminated. Once those services are functional and providing the sensors, the fan floor is allowed to be set normally again. i.e.) For fan floor speeds based on an ambient sensor, if the service providing the ambient temperature value from the sensor terminates, the default floor for the zone is used as the fan floor speed. Change-Id: I2d58cc9b31051e6b8e5e798c0a736f58f5efe5b1 Signed-off-by: Matthew Barth <msbarth@us.ibm.com>
Diffstat (limited to 'control/actions.hpp')
-rw-r--r--control/actions.hpp12
1 files changed, 12 insertions, 0 deletions
diff --git a/control/actions.hpp b/control/actions.hpp
index fff8250..4d2c5c3 100644
--- a/control/actions.hpp
+++ b/control/actions.hpp
@@ -30,6 +30,18 @@ Action call_actions_based_on_timer(
std::vector<Action>&& actions);
/**
+ * @brief An action that sets the floor to the default fan floor speed
+ * @details Sets the fan floor to the defined default fan floor speed when a
+ * service associated to the given group has terminated. Once all services
+ * are functional and providing the sensors again, the fan floor is allowed
+ * to be set normally.
+ *
+ * @param[in] zone - Zone containing fans
+ * @param[in] group - Group of sensors to determine services' states
+ */
+void default_floor_on_missing_owner(Zone& zone, const Group& group);
+
+/**
* @brief An action to set the request speed base
* @details A new target speed is determined using a speed delta being added
* or subtracted, for increases or decrease respectively, from a base speed.
OpenPOWER on IntegriCloud