Skip to content

Commit

Permalink
Utilization sensors max at 30% in Turbo mode
Browse files Browse the repository at this point in the history
Change-Id: I0d2ce6683cec5cb140158ca74682f1bfdb2119d7
CQ: SW402964
Reviewed-on: http://ralgit01.raleigh.ibm.com/gerrit1/46697
Reviewed-by: Christopher J. Cain <cjcain@us.ibm.com>
Reviewed-by: William A. Bryan <wilbryan@us.ibm.com>
Reviewed-by: Martha Broyles <mbroyles@us.ibm.com>
Tested-by: William A. Bryan <wilbryan@us.ibm.com>
  • Loading branch information
dgilbert999 authored and wilbryan committed Sep 28, 2017
1 parent 60c09cd commit e528654
Showing 1 changed file with 2 additions and 7 deletions.
9 changes: 2 additions & 7 deletions src/occ_405/amec/amec_sensors_core.c
Expand Up @@ -342,7 +342,6 @@ void amec_calc_freq_and_util_sensors(CoreData * i_core_data_ptr, uint8_t i_core)
uint32_t temp32 = 0;
uint32_t temp32a = 0;
uint16_t temp16 = 0;
uint16_t temp16a = 0;
uint16_t l_core_util = 0;
uint16_t l_core_freq = 0;
uint16_t l_time_interval = 0;
Expand Down Expand Up @@ -425,9 +424,7 @@ void amec_calc_freq_and_util_sensors(CoreData * i_core_data_ptr, uint8_t i_core)
temp32 = temp32 - temp32a;

temp32 = temp32 >> 8; // Drop non-significant bits
temp16 = (uint16_t) temp32; // Cast to uint16 for mult below
temp16a = 10000; // Mult * 10000 to get finer resolution for 0.01%
temp32 = ((uint32_t)temp16a)*((uint32_t)temp16);
temp32 = temp32 * 10000; // .01% resolution

temp32a = l_cycles4ms; // Get Raw cycles
temp32a = temp32a >> 8; // Drop non-significant bits
Expand Down Expand Up @@ -478,9 +475,7 @@ void amec_calc_freq_and_util_sensors(CoreData * i_core_data_ptr, uint8_t i_core)
temp32 = temp32 - temp32a;

temp32 = temp32 >> 8; // Drop non-significant bits
temp16 = (uint16_t) temp32; // Cast to uint16 for mult below
temp16a = 10000; // Mult * 10000 to get finer resolution for 0.01%
temp32 = ((uint32_t)temp16a)*((uint32_t)temp16);
temp32 = temp32 * 10000; // resolution 0.01%

temp32a = l_cycles4ms;
temp32a = temp32a >> 8; // Drop non-significant bits
Expand Down

0 comments on commit e528654

Please sign in to comment.