summaryrefslogtreecommitdiffstats
path: root/powercap.hpp
diff options
context:
space:
mode:
Diffstat (limited to 'powercap.hpp')
-rw-r--r--powercap.hpp9
1 files changed, 9 insertions, 0 deletions
diff --git a/powercap.hpp b/powercap.hpp
index ff457f8..efd0729 100644
--- a/powercap.hpp
+++ b/powercap.hpp
@@ -49,6 +49,15 @@ public:
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
OpenPOWER on IntegriCloud