@ -1137,13 +1137,12 @@ int pkg_cstate_limit = PCLUKN;
char * pkg_cstate_limit_strings [ ] = { " reserved " , " unknown " , " pc0 " , " pc1 " , " pc2 " ,
" pc3 " , " pc4 " , " pc6 " , " pc6n " , " pc6r " , " pc7 " , " pc7s " , " pc8 " , " pc9 " , " unlimited " } ;
int nhm_pkg_cstate_limits [ 8 ] = { PCL__0 , PCL__1 , PCL__3 , PCL__6 , PCL__7 , PCLRSV , PCLRSV , PCLUNL } ;
int snb_pkg_cstate_limits [ 8 ] = { PCL__0 , PCL__2 , PCL_6N , PCL_6R , PCL__7 , PCL_7S , PCLRSV , PCLUNL } ;
int hsw_pkg_cstate_limits [ 8 ] = { PCL__0 , PCL__2 , PCL__3 , PCL__6 , PCL__7 , PCL_7S , PCLRSV , PCLUNL } ;
int skl_pkg_cstate_limits [ 8 ] = { PCL__0 , PCL__2 , PCL__3 , PCL__6 , PCL__7 , PCL_7S , PCL__8 , PCL__9 } ;
int slv_pkg_cstate_limits [ 8 ] = { PCL__0 , PCL__1 , PCLRSV , PCLRSV , PCL__4 , PCLRSV , PCL__6 , PCL__7 } ;
int amt_pkg_cstate_limits [ 8 ] = { PCL__0 , PCL__1 , PCL__2 , PCLRSV , PCLRSV , PCLRSV , PCL__6 , PCL__7 } ;
int phi_pkg_cstate_limits [ 8 ] = { PCL__0 , PCL__2 , PCL_6N , PCL_6R , PCLRSV , PCLRSV , PCLRSV , PCLUNL } ;
int nhm_pkg_cstate_limits [ 16 ] = { PCL__0 , PCL__1 , PCL__3 , PCL__6 , PCL__7 , PCLRSV , PCLRSV , PCLUNL , PCLRSV , PCLRSV , PCLRSV , PCLRSV , PCLRSV , PCLRSV , PCLRSV , PCLRSV } ;
int snb_pkg_cstate_limits [ 16 ] = { PCL__0 , PCL__2 , PCL_6N , PCL_6R , PCL__7 , PCL_7S , PCLRSV , PCLUNL , PCLRSV , PCLRSV , PCLRSV , PCLRSV , PCLRSV , PCLRSV , PCLRSV , PCLRSV } ;
int hsw_pkg_cstate_limits [ 16 ] = { PCL__0 , PCL__2 , PCL__3 , PCL__6 , PCL__7 , PCL_7S , PCL__8 , PCL__9 , PCLUNL , PCLRSV , PCLRSV , PCLRSV , PCLRSV , PCLRSV , PCLRSV , PCLRSV } ;
int slv_pkg_cstate_limits [ 16 ] = { PCL__0 , PCL__1 , PCLRSV , PCLRSV , PCL__4 , PCLRSV , PCL__6 , PCL__7 , PCLRSV , PCLRSV , PCLRSV , PCLRSV , PCLRSV , PCLRSV , PCLRSV , PCLRSV } ;
int amt_pkg_cstate_limits [ 16 ] = { PCL__0 , PCL__1 , PCL__2 , PCLRSV , PCLRSV , PCLRSV , PCL__6 , PCL__7 , PCLRSV , PCLRSV , PCLRSV , PCLRSV , PCLRSV , PCLRSV , PCLRSV , PCLRSV } ;
int phi_pkg_cstate_limits [ 16 ] = { PCL__0 , PCL__2 , PCL_6N , PCL_6R , PCLRSV , PCLRSV , PCLRSV , PCLUNL , PCLRSV , PCLRSV , PCLRSV , PCLRSV , PCLRSV , PCLRSV , PCLRSV , PCLRSV } ;
static void
dump_nhm_platform_info ( void )
@ -1707,7 +1706,7 @@ int probe_nhm_msrs(unsigned int family, unsigned int model)
}
get_msr ( 0 , MSR_NHM_SNB_PKG_CST_CFG_CTL , & msr ) ;
pkg_cstate_limit = pkg_cstate_limits [ msr & 0x7 ] ;
pkg_cstate_limit = pkg_cstate_limits [ msr & 0xF ] ;
return 1 ;
}
@ -2871,7 +2870,7 @@ int get_and_dump_counters(void)
}
void print_version ( ) {
fprintf ( stderr , " turbostat version 4.4 2 Apr, 2015 "
fprintf ( stderr , " turbostat version 4.5 2 Apr, 2015 "
" - Len Brown <lenb@kernel.org> \n " ) ;
}