Monitor for power cap changes when occ-control started

The object that is monitoring for power cap changes needs to get created
when occ-control is started so that changes are not missed.
Added validation check to ensure that the value sent to the OCC matches
the user configured value on dbus.

Verified on Raininer

Change-Id: I0d77f4569e5459ff58d6fc72147153133d2104a3
Signed-off-by: Chris Cain <cjcain@us.ibm.com>
diff --git a/powercap.hpp b/powercap.hpp
index 34df45f..6d611db 100644
--- a/powercap.hpp
+++ b/powercap.hpp
@@ -93,6 +93,12 @@
      */
     void writeOcc(uint32_t pcapValue);
 
+    /** @brief Read the user power cap from sysfs
+     *
+     * @return User power cap value in Watts or 0 if disabled
+     */
+    uint32_t readUserCapHwmon();
+
     /**
      * @brief Returns the filename to use for the user power cap
      *
@@ -116,13 +122,12 @@
 
     /** @brief Update the power cap bounds on DBus
      *
-     * @param[in]  softMin - soft minimum power cap in Watts
      * @param[in]  hardMin - hard minimum power cap in Watts
      * @param[in]  pcapMax - maximum power cap in Watts
      *
      * @return true if all parms were written successfully
      */
-    bool updateDbusPcap(uint32_t softMin, uint32_t hardMin, uint32_t pcapMax);
+    bool updateDbusPcap(uint32_t hardMin, uint32_t pcapMax);
 };
 
 } // namespace powercap