summaryrefslogtreecommitdiffstats
path: root/src/usr/scom
diff options
context:
space:
mode:
authorDan Crowell <dcrowell@us.ibm.com>2018-09-19 11:24:09 -0500
committerDaniel M. Crowell <dcrowell@us.ibm.com>2018-09-25 20:28:58 -0500
commit7e78cc344a0d6f3914fde662d40ce3be2a2d1d1b (patch)
treeeb9e5258e0969b052da8b961e9b1b15949384f36 /src/usr/scom
parent1012b75b38e5049efb54ed0e634b5c01b78326d9 (diff)
downloadtalos-hostboot-7e78cc344a0d6f3914fde662d40ce3be2a2d1d1b.tar.gz
talos-hostboot-7e78cc344a0d6f3914fde662d40ce3be2a2d1d1b.zip
Fix inverted translation logic in wakeup change
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>
Diffstat (limited to 'src/usr/scom')
-rw-r--r--src/usr/scom/handleSpecialWakeup.C20
1 files changed, 10 insertions, 10 deletions
diff --git a/src/usr/scom/handleSpecialWakeup.C b/src/usr/scom/handleSpecialWakeup.C
index 87a775440..07bab3a1b 100644
--- a/src/usr/scom/handleSpecialWakeup.C
+++ b/src/usr/scom/handleSpecialWakeup.C
@@ -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;
}
@@ -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)
@@ -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;
}
OpenPOWER on IntegriCloud