summaryrefslogtreecommitdiffstats
path: root/src/usr/hwpf/hwp/edi_ei_initialization
diff options
context:
space:
mode:
authorVan Lee <vanlee@us.ibm.com>2012-05-16 19:55:35 -0500
committerA. Patrick Williams III <iawillia@us.ibm.com>2012-06-06 17:05:08 -0500
commit068764225969bfd45cc47ad1e6f2d00a2d7331f2 (patch)
tree76a8e24f2846736488c26b61cc3d4243e44675e5 /src/usr/hwpf/hwp/edi_ei_initialization
parent200c99f2adcf88697a2fce80becee61ef405094d (diff)
downloadtalos-hostboot-068764225969bfd45cc47ad1e6f2d00a2d7331f2.tar.gz
talos-hostboot-068764225969bfd45cc47ad1e6f2d00a2d7331f2.zip
Pick up latest mss_eff_config HWP
Implemented util functions getAllChips, getAllChiplets, getChildChiplets, getAffinityChips. RTC: 41712 Change-Id: I625695a85d768e03365a91fb44b4f9d6525a4276 Reviewed-on: http://gfw160.austin.ibm.com:8080/gerrit/1073 Tested-by: Jenkins Server Reviewed-by: A. Patrick Williams III <iawillia@us.ibm.com>
Diffstat (limited to 'src/usr/hwpf/hwp/edi_ei_initialization')
-rw-r--r--src/usr/hwpf/hwp/edi_ei_initialization/edi_ei_initialization.C20
1 files changed, 5 insertions, 15 deletions
diff --git a/src/usr/hwpf/hwp/edi_ei_initialization/edi_ei_initialization.C b/src/usr/hwpf/hwp/edi_ei_initialization/edi_ei_initialization.C
index 224536aa4..a2f2df13c 100644
--- a/src/usr/hwpf/hwp/edi_ei_initialization/edi_ei_initialization.C
+++ b/src/usr/hwpf/hwp/edi_ei_initialization/edi_ei_initialization.C
@@ -46,6 +46,7 @@
// targeting support
#include <targeting/common/commontargeting.H>
+#include <targeting/common/utilFilter.H>
// fapi support
#include <fapi.H>
@@ -347,28 +348,17 @@ void call_proc_fab_iovalid( void *io_pArgs )
"call_proc_fab_iovalid entry" );
// Get all chip/chiplet targets
- // Use PredicateIsFunctional to filter only functional chips/chiplets
- TARGETING::PredicateIsFunctional l_isFunctional;
- // filter for functional Chips/Chiplets
- TARGETING::PredicateCTM l_Filter(CLASS_CHIP, TYPE_PROC);
- // declare a postfix expression widget
- TARGETING::PredicatePostfixExpr l_goodFilter;
- // is-a--chip is-functional AND
- l_goodFilter.push(&l_Filter).push(&l_isFunctional).And();
- // apply the filter through all targets.
- TARGETING::TargetRangeFilter l_Procs(
- TARGETING::targetService().begin(),
- TARGETING::targetService().end(),
- &l_goodFilter );
+ TARGETING::TargetHandleList l_cpuTargetList;
+ getAllChips(l_cpuTargetList, TYPE_PROC);
std::vector<proc_fab_smp_proc_chip *> l_smp;
- for ( ; l_Procs; ++l_Procs )
+ for ( size_t i = 0; i < l_cpuTargetList.size(); i++ )
{
proc_fab_smp_proc_chip *l_proc = new proc_fab_smp_proc_chip();
l_smp.push_back( l_proc );
- const TARGETING::Target * l_pTarget = *l_Procs;
+ const TARGETING::Target * l_pTarget = l_cpuTargetList[i];
fapi::Target l_fapiproc_target( TARGET_TYPE_PROC_CHIP,
reinterpret_cast<void *>
(const_cast<TARGETING::Target*>(l_pTarget)) );
OpenPOWER on IntegriCloud