From 6fea6031587345a15b07023313803f16e711569f Mon Sep 17 00:00:00 2001 From: Vincent Brillault Date: Sun, 24 Aug 2014 10:37:34 +0200 Subject: [PATCH] Turbostat: SNB & later support MSR_PKG_C2_RESIDENCY --- src/turbostat.c | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/src/turbostat.c b/src/turbostat.c index 9369fb80..d62b522b 100644 --- a/src/turbostat.c +++ b/src/turbostat.c @@ -1205,28 +1205,28 @@ probe_cpu() case 0x3A: /* IVB */ case 0x3E: /* IVB Xeon */ do_core_cstate = (1 << 3) | (1 << 6) | (1 << 7); - do_pkg_cstate = (1 << 3) | (1 << 6) | (1 << 7); + do_pkg_cstate = (1 << 2) | (1 << 3) | (1 << 6) | (1 << 7); break; /* Haswell Bridge */ case 0x3C: /* HSW */ case 0x3F: /* HSW */ case 0x46: /* HSW */ do_core_cstate = (1 << 3) | (1 << 6) | (1 << 7); - do_pkg_cstate = (1 << 3) | (1 << 6) | (1 << 7); + do_pkg_cstate = (1 << 2) | (1 << 3) | (1 << 6) | (1 << 7); break; case 0x45: /* HSW */ do_core_cstate = (1 << 3) | (1 << 6) | (1 << 7); - do_pkg_cstate = (1 << 3) | (1 << 6) | (1 << 7) | (1 << 8) | (1 << 9) | (1 << 10); + do_pkg_cstate = (1 << 2) | (1 << 3) | (1 << 6) | (1 << 7) | (1 << 8) | (1 << 9) | (1 << 10); break; /* Broadwel */ case 0x4F: /* BDW */ case 0x56: /* BDX-DE */ do_core_cstate = (1 << 3) | (1 << 6) | (1 << 7); - do_pkg_cstate = (1 << 3) | (1 << 6) | (1 << 7); + do_pkg_cstate = (1 << 2) | (1 << 3) | (1 << 6) | (1 << 7); break; case 0x3D: /* BDW */ do_core_cstate = (1 << 3) | (1 << 6) | (1 << 7); - do_pkg_cstate = (1 << 3) | (1 << 6) | (1 << 7) | (1 << 8) | (1 << 9) | (1 << 10); + do_pkg_cstate = (1 << 2) | (1 << 3) | (1 << 6) | (1 << 7) | (1 << 8) | (1 << 9) | (1 << 10); break; default: ERROR("Unsupported CPU"); -- 2.30.2