diff options
author | Shreyas B. Prabhu <shreyas@linux.vnet.ibm.com> | 2016-01-18 10:14:43 -0500 |
---|---|---|
committer | Rafael J. Wysocki <rafael.j.wysocki@intel.com> | 2016-01-18 19:17:23 -0500 |
commit | 38cb76a307821f76c7f9dff7449f73aeb014d5cc (patch) | |
tree | c9f064f9b8092e5158771069d8d50189d08644fa /tools/power | |
parent | e98f033f94f385a9cf498d4e9f2ac1e6198b545a (diff) |
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/power')
-rw-r--r-- | tools/power/cpupower/utils/cpufreq-info.c | 1 |
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 @@ | |||
10 | #include <errno.h> | 10 | #include <errno.h> |
11 | #include <stdlib.h> | 11 | #include <stdlib.h> |
12 | #include <string.h> | 12 | #include <string.h> |
13 | #include <limits.h> | ||
13 | 14 | ||
14 | #include <getopt.h> | 15 | #include <getopt.h> |
15 | 16 | ||