summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorTimothy Pearson <tpearson@raptorengineering.com>2019-05-10 18:01:19 +0000
committerTimothy Pearson <tpearson@raptorengineering.com>2019-05-10 21:54:55 +0000
commit8b907c2f75de3e8c05c19d908381828380a853df (patch)
treee7145acaabd25772738efcff49934df37847a862
parentc5aa0ec48d810654ded083b86b069c86e08d492a (diff)
downloadblackbird-openbmc-8b907c2f75de3e8c05c19d908381828380a853df.tar.gz
blackbird-openbmc-8b907c2f75de3e8c05c19d908381828380a853df.zip
Fix logic error in OCC watchdog on single CPU systems
-rwxr-xr-xmeta-openpower/recipes-phosphor/occ/openpower-occ-control/occ-active.sh10
1 files changed, 5 insertions, 5 deletions
diff --git a/meta-openpower/recipes-phosphor/occ/openpower-occ-control/occ-active.sh b/meta-openpower/recipes-phosphor/occ/openpower-occ-control/occ-active.sh
index ffd1e6bd0..fa3a3ea3c 100755
--- a/meta-openpower/recipes-phosphor/occ/openpower-occ-control/occ-active.sh
+++ b/meta-openpower/recipes-phosphor/occ/openpower-occ-control/occ-active.sh
@@ -93,11 +93,11 @@ if [ "$1" == "watchdog" ]; then
if [ $CPU_COUNT -gt 1 ]; then
if [ ! -e /sys/bus/platform/drivers/occ/sbefifo2-dev0/occ-hwmon.2/occ_error ]; then
OCC_FAULT=1
- fi
- else
- STATUS=$(cat /sys/bus/platform/drivers/occ/sbefifo2-dev0/occ-hwmon.2/occ_error)
- if [ $STATUS != 0 ]; then
- OCC_FAULT=1
+ else
+ STATUS=$(cat /sys/bus/platform/drivers/occ/sbefifo2-dev0/occ-hwmon.2/occ_error)
+ if [ $STATUS != 0 ]; then
+ OCC_FAULT=1
+ fi
fi
fi
OpenPOWER on IntegriCloud