configure: turbostat: check for MSR_PKG_C10_RESIDENCY symbol
authorMarc Fournier <marc.fournier@camptocamp.com>
Mon, 15 Jun 2015 09:01:42 +0000 (11:01 +0200)
committerMarc 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

configure.ac

index 6460965..2f3b38d 100644 (file)
@@ -614,14 +614,14 @@ AC_CHECK_HEADERS(asm/msr-index.h, [have_asm_msrindex_h="yes"])
 
 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);
 ]]]
   )],