diff options
author | Doug Gilbert <dgilbert@us.ibm.com> | 2017-09-25 15:09:23 -0500 |
---|---|---|
committer | William A. Bryan <wilbryan@us.ibm.com> | 2017-09-28 11:14:04 -0400 |
commit | e528654726e840ee72e9bcf2bd89c090ce80ca57 (patch) | |
tree | cba2ab7c363b42887a44e8c7489b184c23212c0d /src/occ_405 | |
parent | 60c09cdbcca5f5b324748b0867fe6df0495439de (diff) | |
download | talos-occ-e528654726e840ee72e9bcf2bd89c090ce80ca57.tar.gz talos-occ-e528654726e840ee72e9bcf2bd89c090ce80ca57.zip |
Utilization sensors max at 30% in Turbo mode
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>
Diffstat (limited to 'src/occ_405')
-rwxr-xr-x | src/occ_405/amec/amec_sensors_core.c | 9 |
1 files changed, 2 insertions, 7 deletions
diff --git a/src/occ_405/amec/amec_sensors_core.c b/src/occ_405/amec/amec_sensors_core.c index da0a09b..d2eddec 100755 --- a/src/occ_405/amec/amec_sensors_core.c +++ b/src/occ_405/amec/amec_sensors_core.c @@ -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; @@ -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 @@ -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 |