summaryrefslogtreecommitdiffstats
path: root/tools
diff options
context:
space:
mode:
authorShreyas B. Prabhu <shreyas@linux.vnet.ibm.com>2016-01-18 20:44:43 +0530
committerRafael J. Wysocki <rafael.j.wysocki@intel.com>2016-01-19 01:17:23 +0100
commit38cb76a307821f76c7f9dff7449f73aeb014d5cc (patch)
treec9f064f9b8092e5158771069d8d50189d08644fa /tools
parente98f033f94f385a9cf498d4e9f2ac1e6198b545a (diff)
downloadlinux-38cb76a307821f76c7f9dff7449f73aeb014d5cc.tar.bz2
cpupower: Fix build error in cpufreq-info
Fix the following build error by including limits.h - utils/cpufreq-info.c: In function ‘get_latency’: utils/cpufreq-info.c:437:29: error: ‘UINT_MAX’ undeclared (first use in this function) if (!latency || latency == UINT_MAX) { ^ Signed-off-by: Shreyas B. Prabhu <shreyas@linux.vnet.ibm.com> Fixes: e98f033f94f3 (cpupower: fix how "cpupower frequency-info" interprets latency) Signed-off-by: Rafael J. Wysocki <rafael.j.wysocki@intel.com>
Diffstat (limited to 'tools')
-rw-r--r--tools/power/cpupower/utils/cpufreq-info.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/tools/power/cpupower/utils/cpufreq-info.c b/tools/power/cpupower/utils/cpufreq-info.c
index 8f3f5bb9c74e..590d12a25f6e 100644
--- a/tools/power/cpupower/utils/cpufreq-info.c
+++ b/tools/power/cpupower/utils/cpufreq-info.c
@@ -10,6 +10,7 @@
#include <errno.h>
#include <stdlib.h>
#include <string.h>
+#include <limits.h>
#include <getopt.h>