monitor: Trust group cancel/start monitoring
Any fan monitoring trust groups configured should cancel the monitoring
of all fan sensors configured in the trust group for all monitoring
methods(timer based or count based) when the group is determined not to
be trusted.
Also, the trust manager should restart monitoring all the sensors in the
group by processing each sensor against the configured monitoring
method. This matches how each sensor is processed on each tach changed
signal where only when a tach changed signal is received does the trust
state of the sensor get checked prior to processing the state of the
sensor.
Tested:
Verify fan sensors in trust group's functional state is correct
Signed-off-by: Matthew Barth <msbarth@us.ibm.com>
Change-Id: I7b2ffc538eb1f17017826235353dba85e4f92ebe
diff --git a/monitor/fan.hpp b/monitor/fan.hpp
index 62514f6..5e3802e 100644
--- a/monitor/fan.hpp
+++ b/monitor/fan.hpp
@@ -166,6 +166,18 @@
*/
void sensorErrorTimerExpired(const TachSensor& sensor);
+ /**
+ * @brief Process the state of the given tach sensor without checking
+ * any trust groups the sensor may be included in
+ *
+ * @param[in] sensor - Tach sensor to process
+ *
+ * This function is intended to check the current state of a tach sensor
+ * regardless of whether or not the tach sensor is configured to be in any
+ * trust groups.
+ */
+ void process(TachSensor& sensor);
+
private:
/**
* @brief Returns true if the sensor input is not within