Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
cpusensor: change Min/Max values for power
minValue and maxValue are currently hardcoded for all cpusensors to -128 and 127 respectively. There is no sense to have negative values for power sensors but CPU power consumption can be higher than 127W. Change Min/Max to 0...511 for power sensors. Tested: busctl introspect xyz.openbmc_project.CPUSensor /xyz/openbmc_project/sensors/power/Average_Power_CPU0 xyz.openbmc_project.Sensor.Value interface -- - .MaxValue property d 511 emits-change .MinValue property d 0 emits-change .Unit property s "xyz.openbmc_project.Sensor.Value.Unit.… emits-change .Value property d 64.393 emits-change writable Signed-off-by: Andrei Kartashev <a.kartashev@yadro.com> Change-Id: I0dafdd657194b1b4d709ce093b658a89120f81f9
- Loading branch information