diff options
author | mbroyles <mbroyles@us.ibm.com> | 2017-02-27 11:53:37 -0600 |
---|---|---|
committer | Martha Broyles <mbroyles@us.ibm.com> | 2017-02-27 17:44:41 -0500 |
commit | 525318b3a87d45d1158b720264cbce84095809d4 (patch) | |
tree | b904c05ce85d773d7e36f8a558d2c8c1734c5aa4 /src/occ_405/thread/chom.c | |
parent | 77007965fd05df5175b7b56ef6a6410f1b8a47c2 (diff) | |
download | talos-occ-525318b3a87d45d1158b720264cbce84095809d4.tar.gz talos-occ-525318b3a87d45d1158b720264cbce84095809d4.zip |
Mode support with WOF
Change-Id: I5f58a2b8444f151d4c7b0367137dd8c700442538
RTC: 168025
Reviewed-on: http://ralgit01.raleigh.ibm.com/gerrit1/37109
Tested-by: FSP CI Jenkins <fsp-CI-jenkins+hostboot@us.ibm.com>
Reviewed-by: William A. Bryan <wilbryan@us.ibm.com>
Reviewed-by: Andres A. Lugo-Reyes <aalugore@us.ibm.com>
Reviewed-by: Martha Broyles <mbroyles@us.ibm.com>
Diffstat (limited to 'src/occ_405/thread/chom.c')
-rwxr-xr-x | src/occ_405/thread/chom.c | 14 |
1 files changed, 13 insertions, 1 deletions
diff --git a/src/occ_405/thread/chom.c b/src/occ_405/thread/chom.c index 5e2d6e8..0b27956 100755 --- a/src/occ_405/thread/chom.c +++ b/src/occ_405/thread/chom.c @@ -5,7 +5,7 @@ /* */ /* OpenPOWER OnChipController Project */ /* */ -/* Contributors Listed Below - COPYRIGHT 2011,2016 */ +/* Contributors Listed Below - COPYRIGHT 2011,2017 */ /* [+] International Business Machines Corp. */ /* */ /* */ @@ -225,6 +225,18 @@ void chom_update_sensors() g_chom_pwr_modes[OCC_INTERNAL_MODE_FFO] = 1; break; + case OCC_MODE_NOM_PERFORMANCE: + g_chom_pwr_modes[OCC_INTERNAL_MODE_NOM_PERF] = 1; + break; + + case OCC_MODE_MAX_PERFORMANCE: + g_chom_pwr_modes[OCC_INTERNAL_MODE_MAX_PERF] = 1; + break; + + case OCC_MODE_FMF: + g_chom_pwr_modes[OCC_INTERNAL_MODE_FMF] = 1; + break; + default: TRAC_INFO("chom_update_sensors: Cannot record chom data for mode 0x%02X", g_chom->sensorData[0].pwrMode.mode); |