From 550ff5da10244d6e4e97cb0719e133007012d08d Mon Sep 17 00:00:00 2001 From: Marc Fournier Date: Mon, 15 Jun 2015 11:01:42 +0200 Subject: [PATCH] configure: turbostat: check for MSR_PKG_C10_RESIDENCY symbol 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 | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/configure.ac b/configure.ac index 64609651..2f3b38d7 100644 --- a/configure.ac +++ b/configure.ac @@ -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 ]]], [[[ -int y = MSR_CORE_C3_RESIDENCY; +int y = MSR_PKG_C10_RESIDENCY; return(y); ]]] )], -- 2.11.0