summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: 85444af)
raw | patch | inline | side by side (parent: 85444af)
author | Marc Fournier <marc.fournier@camptocamp.com> | |
Mon, 15 Jun 2015 09:01:42 +0000 (11:01 +0200) | ||
committer | Marc Fournier <marc.fournier@camptocamp.com> | |
Mon, 15 Jun 2015 09:01:42 +0000 (11:01 +0200) |
Older versions of `asm/msr-index.h` don't have all the symbol needed to
build the turbostat plugin. Checking for MSR_PKG_C10_RESIDENCY seems to
guarantee we have a recent enough `asm/msr-index.h`.
Fixes #1075
build the turbostat plugin. Checking for MSR_PKG_C10_RESIDENCY seems to
guarantee we have a recent enough `asm/msr-index.h`.
Fixes #1075
configure.ac | patch | blob | history |
diff --git a/configure.ac b/configure.ac
index 646096518dc540e06a2a69b77fe3e7c32ab2ede7..2f3b38d7fb62f4d85132f9f80c40bb3299b29a13 100644 (file)
--- a/configure.ac
+++ b/configure.ac
if test "x$have_asm_msrindex_h" = "xyes"
then
- AC_CACHE_CHECK([whether asm/msr-index.h has MSR_CORE_C3_RESIDENCY],
+ AC_CACHE_CHECK([whether asm/msr-index.h has MSR_PKG_C10_RESIDENCY],
[c_cv_have_usable_asm_msrindex_h],
AC_COMPILE_IFELSE([AC_LANG_PROGRAM(
[[[
#include<asm/msr-index.h>
]]],
[[[
-int y = MSR_CORE_C3_RESIDENCY;
+int y = MSR_PKG_C10_RESIDENCY;
return(y);
]]]
)],