Skip to content

Commit

Permalink
Fix inverted translation logic in wakeup change
Browse files Browse the repository at this point in the history
Fixing a bug in a recent change to the wakeup logic.

Change-Id: Ie11774d8cb9e6883b76e82ffb434351bb8db0183
Reviewed-on: http://rchgit01.rchland.ibm.com/gerrit1/66342
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>
Tested-by: Jenkins OP HW <op-hw-jenkins+hostboot@us.ibm.com>
Reviewed-by: Daniel M. Crowell <dcrowell@us.ibm.com>
  • Loading branch information
dcrowell77 committed Sep 26, 2018
1 parent 1012b75 commit 7e78cc3
Showing 1 changed file with 10 additions and 10 deletions.
20 changes: 10 additions & 10 deletions src/usr/scom/handleSpecialWakeup.C
Original file line number Diff line number Diff line change
Expand Up @@ -164,15 +164,15 @@ errlHndl_t callWakeupHyp(TARGETING::Target* i_target,
}

uint32_t mode;
if(i_enable == ENABLE)
if(i_enable == WAKEUP::ENABLE)
{
mode = HBRT_WKUP_FORCE_AWAKE;
}
else if(i_enable == DISABLE)
else if(i_enable == WAKEUP::DISABLE)
{
mode = HBRT_WKUP_CLEAR_FORCE;
}
else if(i_enable == FORCE_DISABLE)
else if(i_enable == WAKEUP::FORCE_DISABLE)
{
mode = HBRT_WKUP_CLEAR_FORCE_COMPLETELY;
}
Expand Down Expand Up @@ -373,13 +373,13 @@ errlHndl_t callWakeupHwp(TARGETING::Target* i_target,
l_spcwkupSrc = p9specialWakeup::HOST;
}

if(i_enable==WAKEUP::DISABLE)
if(i_enable==WAKEUP::ENABLE)
{
l_spcwkupType = p9specialWakeup::SPCWKUP_DISABLE;
l_spcwkupType = p9specialWakeup::SPCWKUP_ENABLE;
}
else
else // DISABLE or FORCE_DISABLE
{
l_spcwkupType = p9specialWakeup::SPCWKUP_ENABLE;
l_spcwkupType = p9specialWakeup::SPCWKUP_DISABLE;
}

if(l_type == TARGETING::TYPE_EQ)
Expand Down Expand Up @@ -434,15 +434,15 @@ errlHndl_t callWakeupHwp(TARGETING::Target* i_target,
// Update the counter
if(!l_errl)
{
if(i_enable == ENABLE)
if(i_enable == WAKEUP::ENABLE)
{
l_count++;
}
else if(i_enable == DISABLE)
else if(i_enable == WAKEUP::DISABLE)
{
l_count--;
}
else if(i_enable == FORCE_DISABLE)
else if(i_enable == WAKEUP::FORCE_DISABLE)
{
l_count = 0;
}
Expand Down

0 comments on commit 7e78cc3

Please sign in to comment.