From 0c48707f48715e744b8bb3fd03d40509147c6aab Mon Sep 17 00:00:00 2001 From: Gustavo Zacarias Date: Wed, 21 Dec 2016 22:59:14 -0300 Subject: [PATCH] collectd: add cpusleep plugin support Add explicit support for the new cpusleep dependency-less plugin. Signed-off-by: Gustavo Zacarias Signed-off-by: Peter Korsgaard --- package/collectd/Config.in | 5 +++++ package/collectd/collectd.mk | 1 + 2 files changed, 6 insertions(+) diff --git a/package/collectd/Config.in b/package/collectd/Config.in index 5e84aa5c5d..d1b85aadbe 100644 --- a/package/collectd/Config.in +++ b/package/collectd/Config.in @@ -157,6 +157,11 @@ config BR2_PACKAGE_COLLECTD_CPUFREQ help Collects the current CPU's frequency. +config BR2_PACKAGE_COLLECTD_CPUSLEEP + bool "cpusleep" + help + Measures time spent by CPU in deep sleep mode. + config BR2_PACKAGE_COLLECTD_CURL bool "curl" select BR2_PACKAGE_LIBCURL diff --git a/package/collectd/collectd.mk b/package/collectd/collectd.mk index 5018fb0628..d8b2576c90 100644 --- a/package/collectd/collectd.mk +++ b/package/collectd/collectd.mk @@ -41,6 +41,7 @@ COLLECTD_CONF_OPTS += \ $(if $(BR2_PACKAGE_COLLECTD_CONTEXTSWITCH),--enable-contextswitch,--disable-contextswitch) \ $(if $(BR2_PACKAGE_COLLECTD_CPU),--enable-cpu,--disable-cpu) \ $(if $(BR2_PACKAGE_COLLECTD_CPUFREQ),--enable-cpufreq,--disable-cpufreq) \ + $(if $(BR2_PACKAGE_COLLECTD_CPUSLEEP),--enable-cpusleep,--disable-cpusleep) \ $(if $(BR2_PACKAGE_COLLECTD_CSV),--enable-csv,--disable-csv) \ $(if $(BR2_PACKAGE_COLLECTD_CURL),--enable-curl,--disable-curl) \ $(if $(BR2_PACKAGE_COLLECTD_CURL_JSON),--enable-curl_json,--disable-curl_json) \ -- 2.30.2