Skip to content

Commit

Permalink
Fix for WOF number of present cores
Browse files Browse the repository at this point in the history
Change-Id: Id9da2ec8cd67ea110722d6f923b68807cf3c26cc
Reviewed-on: http://ralgit01.raleigh.ibm.com/gerrit1/41280
Tested-by: Jenkins Server <pfd-jenkins+hostboot@us.ibm.com>
Tested-by: FSP CI Jenkins <fsp-CI-jenkins+hostboot@us.ibm.com>
Tested-by: Jenkins OP Build CI <op-jenkins+hostboot@us.ibm.com>
Reviewed-by: Daniel M. Crowell <dcrowell@us.ibm.com>
  • Loading branch information
cvswen authored and dcrowell77 committed Jun 11, 2017
1 parent cdb79bd commit d375fac
Showing 1 changed file with 7 additions and 3 deletions.
10 changes: 7 additions & 3 deletions src/usr/fapi2/plat_wof_access.C
Original file line number Diff line number Diff line change
Expand Up @@ -108,9 +108,13 @@ fapi2::ReturnCode platParseWOFTables(uint8_t* o_wofData)
TARGETING::targetService().masterProcChipTargetHandle( l_mProc );

// Get the number of present cores
TARGETING::TargetHandleList pECList;
getChildChiplets(pECList, l_mProc, TARGETING::TYPE_CORE, false);
uint32_t l_numCores = pECList.size();
TARGETING::TargetHandleList l_coreTargetList;
TARGETING::getChildAffinityTargetsByState( l_coreTargetList,
l_mProc,
TARGETING::CLASS_UNIT,
TARGETING::TYPE_CORE,
TARGETING::UTIL_FILTER_PRESENT);
uint32_t l_numCores = l_coreTargetList.size();

// Choose a sort freq
uint32_t l_sortFreq = 0;
Expand Down

0 comments on commit d375fac

Please sign in to comment.