From 863c93d1fbd3da8ad18f161e9913567432abc7a9 Mon Sep 17 00:00:00 2001 From: Brian Horton Date: Wed, 16 Jan 2013 15:19:35 -0600 Subject: only processes GARD records for certain targets MPIPL needs capability to do initial collectGard() function on a subset of targets (ie, EX only ). Add new optional TARGETING::Predicate parameter and only call deconfigure for GARD records that match. Change-Id: Ib16d8d9431a797df0dbe625adeb5cffc7c073a7d RTC: 59089 Reviewed-on: http://gfw160.austin.ibm.com:8080/gerrit/2947 Tested-by: Jenkins Server Reviewed-by: MIKE J. JONES Reviewed-by: Nicholas E. Bofferding Reviewed-by: A. Patrick Williams III --- src/include/usr/hwas/common/deconfigGard.H | 11 ++++++++--- 1 file changed, 8 insertions(+), 3 deletions(-) (limited to 'src/include') diff --git a/src/include/usr/hwas/common/deconfigGard.H b/src/include/usr/hwas/common/deconfigGard.H index 01493ecb9..f1507980f 100644 --- a/src/include/usr/hwas/common/deconfigGard.H +++ b/src/include/usr/hwas/common/deconfigGard.H @@ -45,12 +45,13 @@ namespace HWAS * * It will call into hwas platform-specific functions. * - * @param none + * @param i_pPredicate restrict processing - only look at GARD records + * for targets that match the predicate (optional) * * @return errlHndl_t valid errlHndl_t handle if there was an error * NULL if no errors; */ -errlHndl_t collectGard(); +errlHndl_t collectGard(const TARGETING::PredicateBase *i_pPredicate = NULL); /** * @brief Returns a reference to the DeconfigGard singleton. @@ -153,6 +154,9 @@ public: /** * @brief Deconfigures Targets that have GARD Records in preparation to IPL. * + * @param i_pPredicate restrict processing - only look at GARD records + * for targets that match the predicate (optional) + * * Called by HWAS as part of initial IPL steps. * * If deconfiguring all such Targets will result in a configuration that is @@ -161,7 +165,8 @@ public: * * @return errlHndl_t. Error log handle. */ - errlHndl_t deconfigureTargetsFromGardRecordsForIpl(); + errlHndl_t deconfigureTargetsFromGardRecordsForIpl( + const TARGETING::PredicateBase *i_pPredicate = NULL); /** * @brief Deconfigures a Target. -- cgit v1.2.1