commit | f3be5ac854dacfec3ec31e091efe43b88f0f9506 | [log] [tgz] |
---|---|---|
author | Yi Li <adamliyi@msn.com> | Tue Jan 19 21:17:01 2016 +0800 |
committer | Yi Li <adamliyi@msn.com> | Tue Jan 19 21:37:45 2016 +0800 |
tree | 63d98b094aac7f8246ce7c1319608a6225d6e7ed | |
parent | 51fb4a1840058a70387b39210cb4663577941c17 [diff] |
skeleton: Rewrite setValue() method for Dbus object /org/openbmc/sensors/host/PowerCap obmc uses dbus interface 'org.openbmc.SensorValue' of the object '/org/openbmc/sensors/host/PowerCap' to set Host PowerCap. Rewrite the setValue() method to set PowerCap via the "/sys/class/hwmon/hwmonX/user_powercap" OCC-HWMON sysfs attribute. BMC will sends a "Set User PowerCap" command to OCC. Signed-off-by: Yi Li <adamliyi@msn.com>