Determine pcap value to send to occ
Change-Id: Ie60aac151f5fd8ce091020ce756834e4877cbc93
Signed-off-by: Andrew Geissler <andrewg@us.ibm.com>
diff --git a/powercap.hpp b/powercap.hpp
index ff457f8..efd0729 100644
--- a/powercap.hpp
+++ b/powercap.hpp
@@ -49,6 +49,15 @@
this, std::placeholders::_1))
{};
+ /** @brief Return the appropriate value to write to the OCC
+ *
+ * @param[in] pcap - Current user power cap setting
+ * @param[in] pcapEnabled - Current power cap enable setting
+ *
+ * @return The value to write to the occ user pcap
+ */
+ uint32_t getOccInput(uint32_t pcap, bool pcapEnabled);
+
private:
/** @brief Callback for pcap setting changes