Skip to content

Commit

Permalink
PRD: Updated checkLastFuncCore() for fused core mode
Browse files Browse the repository at this point in the history
Change-Id: I9bc666da8cb387fd3e095d36059680f977504350
CQ: SW450550
Reviewed-on: http://rchgit01.rchland.ibm.com/gerrit1/69305
Tested-by: Jenkins Server <pfd-jenkins+hostboot@us.ibm.com>
Reviewed-by: Brian J. Stegmiller <bjs@us.ibm.com>
Reviewed-by: Caleb N. Palmer <cnpalmer@us.ibm.com>
Reviewed-by: Zane C. Shelley <zshelle@us.ibm.com>
Reviewed-on: http://rchgit01.rchland.ibm.com/gerrit1/69459
Tested-by: Jenkins OP Build CI <op-jenkins+hostboot@us.ibm.com>
Tested-by: FSP CI Jenkins <fsp-CI-jenkins+hostboot@us.ibm.com>
Tested-by: Jenkins OP HW <op-hw-jenkins+hostboot@us.ibm.com>
  • Loading branch information
zane131 committed Dec 6, 2018
1 parent 8e551a6 commit bf6ab82
Showing 1 changed file with 13 additions and 2 deletions.
15 changes: 13 additions & 2 deletions src/usr/diag/prdf/common/plat/prdfTargetServices.C
Original file line number Diff line number Diff line change
Expand Up @@ -1275,8 +1275,19 @@ bool checkLastFuncCore( TARGETING::TargetHandle_t i_trgt )
{
bool o_lastCore = false;

TargetHandleList l_list = getFunctionalTargetList( TYPE_CORE );
if ( 1 == l_list.size() && l_list[0] == i_trgt )
// Default for non-fused cores.
TARGETING::TYPE type = TYPE_CORE;
TargetHandle_t trgt = i_trgt;

// Check for fused-core mode.
if ( is_fused_mode() )
{
type = TYPE_EX;
trgt = getConnectedParent( trgt, type );
}

TargetHandleList l_list = getFunctionalTargetList( type );
if ( 1 == l_list.size() && l_list[0] == trgt )
o_lastCore = true;

return o_lastCore;
Expand Down

0 comments on commit bf6ab82

Please sign in to comment.