diff options
author | Sachin Gupta <sgupta2m@in.ibm.com> | 2016-11-29 22:24:47 -0600 |
---|---|---|
committer | Daniel M. Crowell <dcrowell@us.ibm.com> | 2017-02-11 21:39:16 -0500 |
commit | 5eb984b6ebedf3519cfe4d0c0b2a023cbcc9a9eb (patch) | |
tree | e1f57de31c0c7238b5d0724ffb7ca8ddb852572b /src/import/chips/p9/procedures/hwp/pm/p9_pm_pfet_control.C | |
parent | 1c68a421d05082c3f83cc12df4d6e67ea34667e3 (diff) | |
download | talos-hostboot-5eb984b6ebedf3519cfe4d0c0b2a023cbcc9a9eb.tar.gz talos-hostboot-5eb984b6ebedf3519cfe4d0c0b2a023cbcc9a9eb.zip |
Solve compilation issues when FAPI_INF is disabled
Change-Id: I4c8076d77294c04cf4227d739d4e1d0fdf5584cf
Original-Change-Id: I08e54bf351f2f732d03c81e0e9a80506c4b7ff40
Reviewed-on: http://ralgit01.raleigh.ibm.com/gerrit1/33166
Tested-by: Jenkins Server <pfd-jenkins+hostboot@us.ibm.com>
Tested-by: PPE CI <ppe-ci+hostboot@us.ibm.com>
Tested-by: Hostboot CI <hostboot-ci+hostboot@us.ibm.com>
Reviewed-by: Gregory S. Still <stillgs@us.ibm.com>
Reviewed-by: Joseph J. McGill <jmcgill@us.ibm.com>
Reviewed-on: http://ralgit01.raleigh.ibm.com/gerrit1/36103
Tested-by: Jenkins OP Build CI <op-jenkins+hostboot@us.ibm.com>
Tested-by: FSP CI Jenkins <fsp-CI-jenkins+hostboot@us.ibm.com>
Reviewed-by: Daniel M. Crowell <dcrowell@us.ibm.com>
Diffstat (limited to 'src/import/chips/p9/procedures/hwp/pm/p9_pm_pfet_control.C')
-rwxr-xr-x | src/import/chips/p9/procedures/hwp/pm/p9_pm_pfet_control.C | 30 |
1 files changed, 11 insertions, 19 deletions
diff --git a/src/import/chips/p9/procedures/hwp/pm/p9_pm_pfet_control.C b/src/import/chips/p9/procedures/hwp/pm/p9_pm_pfet_control.C index 18b48b7bb..fbb013f82 100755 --- a/src/import/chips/p9/procedures/hwp/pm/p9_pm_pfet_control.C +++ b/src/import/chips/p9/procedures/hwp/pm/p9_pm_pfet_control.C @@ -139,14 +139,12 @@ fapi2::ReturnCode p9_pm_pfet_control_eq( const PM_PFET_TYPE_C::pfet_force_t i_op) { fapi2::current_err = fapi2::FAPI2_RC_SUCCESS; - uint32_t l_unit_pos = 0; bool core_target_found = false; FAPI_INF("p9_pm_pfet_control_eq: Entering..."); - // Get chiplet position - l_unit_pos = i_target.getChipletNumber(); - FAPI_INF("pfet control for EQ chiplet %d", l_unit_pos); + // Print chiplet position + FAPI_INF("pfet control for EQ chiplet %d", i_target.getChipletNumber()); // When i_op == OFF all functional cores first followed by EQ // When i_op == ON EQ first followed by all functional cores @@ -160,8 +158,7 @@ fapi2::ReturnCode p9_pm_pfet_control_eq( for (auto& l_core_target : i_target.getChildren<fapi2::TARGET_TYPE_CORE> (fapi2::TARGET_STATE_FUNCTIONAL)) { - l_unit_pos = l_core_target.getChipletNumber(); - FAPI_INF("Core chiplet %d in EQ", l_unit_pos); + FAPI_INF("Core chiplet %d in EQ", l_core_target.getChipletNumber()); FAPI_TRY(pfet_ctrl<fapi2::TargetType::TARGET_TYPE_CORE>(l_core_target, i_rail, i_op), "Error: pfet_ctrl for core!!"); core_target_found = true; @@ -176,7 +173,7 @@ fapi2::ReturnCode p9_pm_pfet_control_eq( else if( ((i_op == PM_PFET_TYPE_C::ON) && !(core_target_found)) || ((i_op == PM_PFET_TYPE_C::OFF) && !(core_target_found)) ) { - FAPI_INF("EQ chiplet no. %d; No core target found in functional state in this EQ\n", l_unit_pos); + FAPI_INF("EQ chiplet no. %d; No core target found in functional state in this EQ\n", i_target.getChipletNumber()); } FAPI_INF("p9_pm_pfet_control_eq: ...Exiting"); @@ -193,21 +190,18 @@ fapi2::ReturnCode p9_pm_pfet_control_ex( const PM_PFET_TYPE_C::pfet_force_t i_op) { fapi2::current_err = fapi2::FAPI2_RC_SUCCESS; - uint32_t l_unit_pos = 0; bool core_target_found = false; FAPI_INF("p9_pm_pfet_control_ex: Entering..."); // Get chiplet position - l_unit_pos = i_target.getChipletNumber(); - FAPI_INF("pfet control for EX chiplet %d", l_unit_pos); + FAPI_INF("pfet control for EX chiplet %d", i_target.getChipletNumber()); // Check for all core chiplets in EX and power on/off targets accordingly for (auto& l_core_target : i_target.getChildren<fapi2::TARGET_TYPE_CORE> (fapi2::TARGET_STATE_FUNCTIONAL)) { - l_unit_pos = l_core_target.getChipletNumber(); - FAPI_INF("Core chiplet %d in EX", l_unit_pos); + FAPI_INF("Core chiplet %d in EX", l_core_target.getChipletNumber()); FAPI_TRY(pfet_ctrl<fapi2::TargetType::TARGET_TYPE_CORE>(l_core_target, i_rail, i_op), "Error: pfet_ctrl for core!!"); core_target_found = true; @@ -216,7 +210,8 @@ fapi2::ReturnCode p9_pm_pfet_control_ex( // When no functional chiplet target found if(!core_target_found) { - FAPI_INF("EX chiplet no. %d; No core target found in functional state in this EX\n", l_unit_pos); + FAPI_INF("EX chiplet no. %d; No core target found in functional state" + " in this EX", i_target.getChipletNumber()); } FAPI_INF("p9_pm_pfet_control_ex: ...Exiting"); @@ -257,21 +252,18 @@ fapi2::ReturnCode pfet_ctrl( const PM_PFET_TYPE_C::pfet_force_t i_op) { fapi2::current_err = fapi2::FAPI2_RC_SUCCESS; - uint32_t l_unit_pos = 0; FAPI_INF("pfet_ctrl: Entering..."); - // Get chiplet position - l_unit_pos = i_target.getChipletNumber(); - // Check for target passed if(i_target.getType() & fapi2::TARGET_TYPE_CORE) { - FAPI_INF("pfet control for Core chiplet %d", l_unit_pos); + FAPI_INF("pfet control for Core chiplet %d", + i_target.getChipletNumber()); } else if(i_target.getType() & fapi2::TARGET_TYPE_EQ) { - FAPI_INF("pfet control for EQ chiplet %d", l_unit_pos); + FAPI_INF("pfet control for EQ chiplet %d", i_target.getChipletNumber()); } else { |