diff options
| author | James Feist <james.feist@linux.intel.com> | 2019-02-25 10:01:42 -0800 |
|---|---|---|
| committer | James Feist <james.feist@linux.intel.com> | 2019-02-26 18:31:58 +0000 |
| commit | 608304da320f232b9adc591301581a5fa5949fff (patch) | |
| tree | 9916d7a2cb714cac305d9a2ff34ed3471a50c895 /dbus | |
| parent | 2642cb54945d1500992559fc55241b48afce3551 (diff) | |
| download | phosphor-pid-control-608304da320f232b9adc591301581a5fa5949fff.tar.gz phosphor-pid-control-608304da320f232b9adc591301581a5fa5949fff.zip | |
stepwise: Add ceiling type
Add a stepwise ceiling type, this is used as a
upper clipping curve to limit the max output based
on a temperature sensor. This is commonly used for
quiet fan mode where CPU throttling is allowed to
preserve a max fan noise.
Change-Id: I181d5913c92e5498a34e6d3f67cf99b67471479c
Signed-off-by: James Feist <james.feist@linux.intel.com>
Diffstat (limited to 'dbus')
| -rw-r--r-- | dbus/dbusconfiguration.cpp | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/dbus/dbusconfiguration.cpp b/dbus/dbusconfiguration.cpp index 7cb09fb..b449490 100644 --- a/dbus/dbusconfiguration.cpp +++ b/dbus/dbusconfiguration.cpp @@ -507,6 +507,9 @@ void init(sdbusplus::bus::bus& bus) info.stepwiseInfo.ts = 1.0; // currently unused info.stepwiseInfo.positiveHysteresis = 0.0; info.stepwiseInfo.negativeHysteresis = 0.0; + std::string subtype = std::get<std::string>(base.at("Class")); + + info.stepwiseInfo.isCeiling = (subtype == "Ceiling"); auto findPosHyst = base.find("PositiveHysteresis"); auto findNegHyst = base.find("NegativeHysteresis"); if (findPosHyst != base.end()) |

