summaryrefslogtreecommitdiffstats
path: root/src/import/chips/p9/procedures/hwp/pm/p9_pm_pfet_control.C
diff options
context:
space:
mode:
authorspashabk-in <shakeebbk@in.ibm.com>2016-11-21 05:24:49 -0600
committerDaniel M. Crowell <dcrowell@us.ibm.com>2017-02-11 21:39:08 -0500
commit1c68a421d05082c3f83cc12df4d6e67ea34667e3 (patch)
treedbb6217594a3975e7a333ae02e9b49bf178094d1 /src/import/chips/p9/procedures/hwp/pm/p9_pm_pfet_control.C
parentd89057a043ba6f309fa3fb686c9476d0dc013f23 (diff)
downloadtalos-hostboot-1c68a421d05082c3f83cc12df4d6e67ea34667e3.tar.gz
talos-hostboot-1c68a421d05082c3f83cc12df4d6e67ea34667e3.zip
Change auto variables to references
Change-Id: I5579017b26aa45be32db0e9d30d0eee6c8dea9a4 Original-Change-Id: I2b9c38757f89d23c627e4a8f2cb3b072bd3bc984 Reviewed-on: http://ralgit01.raleigh.ibm.com/gerrit1/32867 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: Joseph J. McGill <jmcgill@us.ibm.com> Reviewed-by: RAJA DAS <rajadas2@in.ibm.com> Reviewed-by: Dean Sanner <dsanner@us.ibm.com> Reviewed-by: SRINIVAS V. POLISETTY <srinivan@in.ibm.com> Reviewed-by: PARVATHI RACHAKONDA <prachako@in.ibm.com> Reviewed-on: http://ralgit01.raleigh.ibm.com/gerrit1/36102 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-xsrc/import/chips/p9/procedures/hwp/pm/p9_pm_pfet_control.C4
1 files changed, 2 insertions, 2 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 eb85b3586..18b48b7bb 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
@@ -157,7 +157,7 @@ fapi2::ReturnCode p9_pm_pfet_control_eq(
}
// Check for all core chiplets in EQ and power on/off targets accordingly
- for (auto l_core_target : i_target.getChildren<fapi2::TARGET_TYPE_CORE>
+ for (auto& l_core_target : i_target.getChildren<fapi2::TARGET_TYPE_CORE>
(fapi2::TARGET_STATE_FUNCTIONAL))
{
l_unit_pos = l_core_target.getChipletNumber();
@@ -203,7 +203,7 @@ fapi2::ReturnCode p9_pm_pfet_control_ex(
FAPI_INF("pfet control for EX chiplet %d", l_unit_pos);
// 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>
+ for (auto& l_core_target : i_target.getChildren<fapi2::TARGET_TYPE_CORE>
(fapi2::TARGET_STATE_FUNCTIONAL))
{
l_unit_pos = l_core_target.getChipletNumber();
OpenPOWER on IntegriCloud