From: Vincent Brillault Date: Sun, 24 Aug 2014 08:37:34 +0000 (+0200) Subject: Turbostat: SNB & later support MSR_PKG_C2_RESIDENCY X-Git-Tag: collectd-5.5.0~24^2~48 X-Git-Url: https://git.verplant.org/?a=commitdiff_plain;h=6fea6031587345a15b07023313803f16e711569f;p=collectd.git Turbostat: SNB & later support MSR_PKG_C2_RESIDENCY --- 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");