Skip to content

Commit

Permalink
PRD: Fixed last functional core function for P9
Browse files Browse the repository at this point in the history
Change-Id: I3a8662ab7ba0579c2c819402c08648e91a6f8f8e
CQ: SW450550
Reviewed-on: http://rchgit01.rchland.ibm.com/gerrit1/68712
Reviewed-by: Caleb N. Palmer <[email protected]>
Reviewed-by: Brian J. Stegmiller <[email protected]>
Tested-by: Jenkins Server <[email protected]>
Reviewed-by: Zane C. Shelley <[email protected]>
Reviewed-on: http://rchgit01.rchland.ibm.com/gerrit1/68847
Tested-by: Jenkins OP Build CI <[email protected]>
Tested-by: Jenkins OP HW <[email protected]>
Tested-by: FSP CI Jenkins <[email protected]>
  • Loading branch information
zane131 committed Nov 27, 2018
1 parent f6bbedd commit 3131f27
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 10 deletions.
12 changes: 6 additions & 6 deletions src/usr/diag/prdf/common/plat/prdfTargetServices.C
Original file line number Diff line number Diff line change
Expand Up @@ -1271,15 +1271,15 @@ TARGETING::TargetHandleList getFunctionalTargetList( TARGETING::TYPE i_type )

//------------------------------------------------------------------------------

bool checkLastFuncEx( TARGETING::TargetHandle_t i_exTarget )
bool checkLastFuncCore( TARGETING::TargetHandle_t i_trgt )
{
bool o_lastEx = false;
bool o_lastCore = false;

TargetHandleList l_list = getFunctionalTargetList( TYPE_EX );
if ( 1 == l_list.size() && l_list[0] == i_exTarget )
o_lastEx = true;
TargetHandleList l_list = getFunctionalTargetList( TYPE_CORE );
if ( 1 == l_list.size() && l_list[0] == i_trgt )
o_lastCore = true;

return o_lastEx;
return o_lastCore;
}

//------------------------------------------------------------------------------
Expand Down
8 changes: 4 additions & 4 deletions src/usr/diag/prdf/common/plat/prdfTargetServices.H
Original file line number Diff line number Diff line change
Expand Up @@ -332,11 +332,11 @@ TARGETING::TargetHandle_t getParentChip( TARGETING::TargetHandle_t i_target );
TARGETING::TargetHandleList getFunctionalTargetList( TARGETING::TYPE i_type );

/**
* @brief Determines if the given target is the last functional EX.
* @param i_exTarget A EX target.
* @return TRUE if target is last functional EX, FALSE otherwise.
* @brief Determines if the given target is the last functional CORE.
* @param i_trgt A CORE target.
* @return TRUE if target is last functional CORE, FALSE otherwise.
*/
bool checkLastFuncEx( TARGETING::TargetHandle_t i_exTarget );
bool checkLastFuncCore( TARGETING::TargetHandle_t i_trgt );

/** @return The master PROC target. NULL on failure. */
TARGETING::TargetHandle_t getMasterProc();
Expand Down

0 comments on commit 3131f27

Please sign in to comment.