summaryrefslogtreecommitdiffstats
path: root/hwmon.hpp
diff options
context:
space:
mode:
Diffstat (limited to 'hwmon.hpp')
-rw-r--r--hwmon.hpp7
1 files changed, 7 insertions, 0 deletions
diff --git a/hwmon.hpp b/hwmon.hpp
index 18197d9..77e3611 100644
--- a/hwmon.hpp
+++ b/hwmon.hpp
@@ -33,6 +33,7 @@ static constexpr auto ccurr = "curr";
static constexpr auto cenergy = "energy";
static constexpr auto cpower = "power";
static constexpr auto cpwm = "pwm";
+static constexpr auto cfreq = "freq";
static const std::string fan = cfan;
@@ -42,6 +43,7 @@ static const std::string curr = ccurr;
static const std::string energy = cenergy;
static const std::string power = cpower;
static const std::string pwm = cpwm;
+static const std::string freq = cfreq;
}
static constexpr auto typeAttrMap =
@@ -80,6 +82,11 @@ static constexpr auto typeAttrMap =
ValueInterface::Unit::Watts,
-6,
"power"),
+ std::make_tuple(
+ hwmon::type::cfreq,
+ ValueInterface::Unit::MHz,
+ 0,
+ "frequency"),
};
inline auto getHwmonType(decltype(typeAttrMap)::const_reference attrs)
OpenPOWER on IntegriCloud