cpusensor: Add thresold offset
Added DTS critical offset parameter to change critical thresold
value of DTS sensors.
Tested by setting value in entity manager and seeing output
reflect in dbus interface.
Change-Id: Ib819d20322b7eca5f6e8690827bf97d49695e995
Signed-off-by: Vijay Khemka <vijaykhemka@fb.com>
diff --git a/include/Thresholds.hpp b/include/Thresholds.hpp
index 16b8bb9..f374ab6 100644
--- a/include/Thresholds.hpp
+++ b/include/Thresholds.hpp
@@ -104,7 +104,8 @@
bool parseThresholdsFromAttr(std::vector<thresholds::Threshold>& thresholds,
const std::string& inputPath,
- const double& scaleFactor);
+ const double& scaleFactor,
+ const double& offset = 0);
bool hasCriticalInterface(
const std::vector<thresholds::Threshold>& thresholdVector);