diff options
author | Andres Lugo-Reyes <aalugore@us.ibm.com> | 2017-05-04 16:55:25 -0500 |
---|---|---|
committer | Martha Broyles <mbroyles@us.ibm.com> | 2017-05-17 14:22:22 -0400 |
commit | 52e2dab2a303b7358f1e6b6d9379424c78472e42 (patch) | |
tree | 53d987ca2dae9ace1c23bbe0054c3ddabbe4dff0 /src/occ_405/mode.c | |
parent | a64c253aa40eb0aba7f3fa6d6ee5f5cec93cc66e (diff) | |
download | talos-occ-52e2dab2a303b7358f1e6b6d9379424c78472e42.tar.gz talos-occ-52e2dab2a303b7358f1e6b6d9379424c78472e42.zip |
Reformat WOF error handling
Change-Id: I1e0e640e16e8e7a9244dc6ba0b334a0e499255c4
Reviewed-on: http://ralgit01.raleigh.ibm.com/gerrit1/40220
Reviewed-by: William A. Bryan <wilbryan@us.ibm.com>
Tested-by: FSP CI Jenkins <fsp-CI-jenkins+hostboot@us.ibm.com>
Reviewed-by: Martha Broyles <mbroyles@us.ibm.com>
Diffstat (limited to 'src/occ_405/mode.c')
-rwxr-xr-x | src/occ_405/mode.c | 18 |
1 files changed, 9 insertions, 9 deletions
diff --git a/src/occ_405/mode.c b/src/occ_405/mode.c index ee7a13b..f8b00cb 100755 --- a/src/occ_405/mode.c +++ b/src/occ_405/mode.c @@ -272,7 +272,7 @@ errlHndl_t SMGR_mode_transition_to_nominal() l_errlHndl = amec_set_freq_range(OCC_MODE_NOMINAL); // WOF is disabled in nominal mode - g_amec->wof.wof_disabled |= WOF_RC_MODE_NO_SUPPORT_MASK; + set_clear_wof_disabled( SET, WOF_RC_MODE_NO_SUPPORT_MASK ); CURRENT_MODE() = OCC_MODE_NOMINAL; TRAC_IMP("SMGR: Mode to Nominal Transition Completed"); @@ -298,7 +298,7 @@ errlHndl_t SMGR_mode_transition_to_powersave() l_errlHndl = amec_set_freq_range(OCC_MODE_PWRSAVE); // WOF is disabled in SPS mode - g_amec->wof.wof_disabled |= WOF_RC_MODE_NO_SUPPORT_MASK; + set_clear_wof_disabled( SET, WOF_RC_MODE_NO_SUPPORT_MASK ); CURRENT_MODE() = OCC_MODE_PWRSAVE; TRAC_IMP("SMGR: Mode to PowerSave Transition Completed"); @@ -324,7 +324,7 @@ errlHndl_t SMGR_mode_transition_to_dynpowersave() l_errlHndl = amec_set_freq_range(OCC_MODE_DYN_POWER_SAVE); // WOF is enabled in DPS, clear the mode bit - g_amec->wof.wof_disabled &= ~WOF_RC_MODE_NO_SUPPORT_MASK; + set_clear_wof_disabled( CLEAR, WOF_RC_MODE_NO_SUPPORT_MASK ); CURRENT_MODE() = OCC_MODE_DYN_POWER_SAVE; TRAC_IMP("SMGR: Mode to Dynamic PowerSave-Favor Energy Transition Completed"); @@ -349,7 +349,7 @@ errlHndl_t SMGR_mode_transition_to_dynpowersave_fp() l_errlHndl = amec_set_freq_range(OCC_MODE_DYN_POWER_SAVE_FP); // WOF is enabled in DPS-FP, clear the mode bit - g_amec->wof.wof_disabled &= ~WOF_RC_MODE_NO_SUPPORT_MASK; + set_clear_wof_disabled( CLEAR, WOF_RC_MODE_NO_SUPPORT_MASK ); CURRENT_MODE() = OCC_MODE_DYN_POWER_SAVE_FP; TRAC_IMP("SMGR: Mode to Dynamic PowerSave-Favor Performance Transition Completed"); @@ -375,7 +375,7 @@ errlHndl_t SMGR_mode_transition_to_turbo() l_errlHndl = amec_set_freq_range(OCC_MODE_TURBO); // WOF is disabled in turbo mode - g_amec->wof.wof_disabled |= WOF_RC_MODE_NO_SUPPORT_MASK; + set_clear_wof_disabled( SET, WOF_RC_MODE_NO_SUPPORT_MASK ); CURRENT_MODE() = OCC_MODE_TURBO; TRAC_IMP("SMGR: Mode to Turbo Transition Completed"); @@ -401,7 +401,7 @@ errlHndl_t SMGR_mode_transition_to_ffo() l_errlHndl = amec_set_freq_range(OCC_MODE_FFO); // WOF is disabled in FFO - g_amec->wof.wof_disabled |= WOF_RC_MODE_NO_SUPPORT_MASK; + set_clear_wof_disabled( SET, WOF_RC_MODE_NO_SUPPORT_MASK ); CURRENT_MODE() = OCC_MODE_FFO; TRAC_IMP("SMGR: Mode to FFO Transition Completed"); @@ -426,7 +426,7 @@ errlHndl_t SMGR_mode_transition_to_fmf() l_errlHndl = amec_set_freq_range(OCC_MODE_FMF); // WOF is enabled in FMF, clear the mode bit - g_amec->wof.wof_disabled &= ~WOF_RC_MODE_NO_SUPPORT_MASK; + set_clear_wof_disabled( CLEAR, WOF_RC_MODE_NO_SUPPORT_MASK ); CURRENT_MODE() = OCC_MODE_FMF; TRAC_IMP("SMGR: Mode to FMF Transition Completed"); @@ -451,7 +451,7 @@ errlHndl_t SMGR_mode_transition_to_nom_perf() l_errlHndl = amec_set_freq_range(OCC_MODE_NOM_PERFORMANCE); // WOF is enabled in nominal performance mode, clear the mode bit - g_amec->wof.wof_disabled &= ~WOF_RC_MODE_NO_SUPPORT_MASK; + set_clear_wof_disabled( CLEAR, WOF_RC_MODE_NO_SUPPORT_MASK ); CURRENT_MODE() = OCC_MODE_NOM_PERFORMANCE; TRAC_IMP("SMGR: Mode to Nominal Performance Transition Completed"); @@ -476,7 +476,7 @@ errlHndl_t SMGR_mode_transition_to_max_perf() l_errlHndl = amec_set_freq_range(OCC_MODE_MAX_PERFORMANCE); // WOF is enabled in max performance mode, clear the mode bit - g_amec->wof.wof_disabled &= ~WOF_RC_MODE_NO_SUPPORT_MASK; + set_clear_wof_disabled( CLEAR, WOF_RC_MODE_NO_SUPPORT_MASK ); CURRENT_MODE() = OCC_MODE_MAX_PERFORMANCE; TRAC_IMP("SMGR: Mode to Maximum Performance Transition Completed"); |