diff options
-rw-r--r-- | src/include/usr/targeting/predicates/predicates.H | 40 | ||||
-rw-r--r-- | src/usr/hwas/hwas.C | 23 |
2 files changed, 62 insertions, 1 deletions
diff --git a/src/include/usr/targeting/predicates/predicates.H b/src/include/usr/targeting/predicates/predicates.H new file mode 100644 index 000000000..2c615852c --- /dev/null +++ b/src/include/usr/targeting/predicates/predicates.H @@ -0,0 +1,40 @@ +// IBM_PROLOG_BEGIN_TAG +// This is an automatically generated prolog. +// +// $Source: src/include/usr/targeting/predicates/predicates.H $ +// +// IBM CONFIDENTIAL +// +// COPYRIGHT International Business Machines Corp. 2012 +// +// p1 +// +// Object Code Only (OCO) source materials +// Licensed Internal Code Source Materials +// IBM HostBoot Licensed Internal Code +// +// The source code for this program is not published or other- +// wise divested of its trade secrets, irrespective of what has +// been deposited with the U.S. Copyright Office. +// +// Origin: 30 +// +// IBM_PROLOG_END +#ifndef TARG_PREDICATES_H +#define TARG_PREDICATES_H + +/** + * @file predicateall.H + * + * @brief Shortcut file to pull in all the predicate include files. + * + */ +#include <targeting/predicates/predicatebase.H> +#include <targeting/predicates/predicatectm.H> +#include <targeting/predicates/predicatepostfixexpr.H> +#include <targeting/predicates/predicateisfunctional.H> + +// please keep up to date... + +#endif + diff --git a/src/usr/hwas/hwas.C b/src/usr/hwas/hwas.C index a310a28ba..2c73b0c21 100644 --- a/src/usr/hwas/hwas.C +++ b/src/usr/hwas/hwas.C @@ -41,7 +41,7 @@ #include <errl/errlentry.H> #include <targeting/targetservice.H> #include <targeting/iterators/rangefilter.H> -#include <targeting/predicates/predicatectm.H> +#include <targeting/predicates/predicates.H> #include <fsi/fsiif.H> #include <hwas/hwas.H> @@ -184,6 +184,27 @@ void init_target_states( void *io_pArgs ) enableHwasState( l_hwasState ); l_memTargetList[ii]->setAttr<ATTR_HWAS_STATE>( l_hwasState ); + + // enable MBA's for each centaur + TARGETING::PredicateCTM l_mbaFilter(CLASS_UNIT, TYPE_MBA); + TARGETING::TargetHandleList l_mbaTargetList; + TARGETING::targetService().getAssociated(l_mbaTargetList, + l_memTargetList[ii], + TARGETING::TargetService::CHILD_BY_AFFINITY, + TARGETING::TargetService::ALL, &l_mbaFilter); + TRACDCOMP( g_trac_hwas, + "%d MBA's with MEMBUF %d", + l_mbaTargetList.size(), + ii ); + + for ( uint8_t ij=0; ij < l_mbaTargetList.size(); ij++ ) + { + l_hwasState = l_mbaTargetList[ij]->getAttr<ATTR_HWAS_STATE>(); + enableHwasState( l_hwasState ); + l_mbaTargetList[ij]->setAttr<ATTR_HWAS_STATE>( l_hwasState ); + } + + // look for the dimms on each centaur TARGETING::PredicateCTM l_dimms(CLASS_LOGICAL_CARD, TYPE_DIMM); TARGETING::TargetHandleList l_dimmTargetList; |