summaryrefslogtreecommitdiffstats
path: root/monitor/fan.hpp
diff options
context:
space:
mode:
authorMatt Spinler <spinler@us.ibm.com>2017-09-28 13:13:08 -0500
committerMatt Spinler <spinler@us.ibm.com>2017-10-11 09:25:04 -0500
commitc39e859b44c7d9152c76462ab4848060c840ab29 (patch)
tree00cd5f026646677c4275e854183633e83ed341be /monitor/fan.hpp
parent35108a774758099abb80299c8732b830418fa2ad (diff)
downloadphosphor-fan-presence-c39e859b44c7d9152c76462ab4848060c840ab29.tar.gz
phosphor-fan-presence-c39e859b44c7d9152c76462ab4848060c840ab29.zip
monitor: Start checking tach trust
The Fan class now uses the trust::Manager class to ask if a sensor value is trusted before analyzing its value against the upper and lower limits. Change-Id: I81dd468877873ba84753d76395b4a59129824c0b Signed-off-by: Matt Spinler <spinler@us.ibm.com>
Diffstat (limited to 'monitor/fan.hpp')
-rw-r--r--monitor/fan.hpp8
1 files changed, 8 insertions, 0 deletions
diff --git a/monitor/fan.hpp b/monitor/fan.hpp
index 3da75cf..b366c44 100644
--- a/monitor/fan.hpp
+++ b/monitor/fan.hpp
@@ -5,6 +5,7 @@
#include <vector>
#include "event.hpp"
#include "tach_sensor.hpp"
+#include "trust_manager.hpp"
#include "types.hpp"
namespace phosphor
@@ -89,11 +90,13 @@ class Fan
* @param mode - mode of fan monitor
* @param bus - the dbus object
* @param events - pointer to sd_event object
+ * @param trust - the tach trust manager
* @param def - the fan definition structure
*/
Fan(Mode mode,
sdbusplus::bus::bus& bus,
phosphor::fan::event::EventPtr& events,
+ std::unique_ptr<trust::Manager>& trust,
const FanDefinition& def);
/**
@@ -197,6 +200,11 @@ class Fan
* The sensor objects for the fan
*/
std::vector<std::unique_ptr<TachSensor>> _sensors;
+
+ /**
+ * The tach trust manager object
+ */
+ std::unique_ptr<trust::Manager>& _trustManager;
};
}
OpenPOWER on IntegriCloud