summaryrefslogtreecommitdiffstats
path: root/src/occ_405/reset.c
diff options
context:
space:
mode:
authorWael El-Essawy <welessa@us.ibm.com>2017-02-02 17:07:00 -0600
committerWael El-Essawy <welessa@us.ibm.com>2017-02-15 16:02:10 -0500
commit7d221393954c02379f488a38d3e97c33f46178cd (patch)
tree8f309604b7163c5638f5e56d2e357e4ea7b4a973 /src/occ_405/reset.c
parent728e32c222f278b223b850040df1c01347812e7e (diff)
downloadtalos-occ-7d221393954c02379f488a38d3e97c33f46178cd.tar.gz
talos-occ-7d221393954c02379f488a38d3e97c33f46178cd.zip
occ_405 dir cleanup from TODOs
either implement todos or refer to planned RTC Change-Id: Id9209bd9a89e0d38a56e2999f6e7fe2d16dd6433 RTC: 163361 Reviewed-on: http://ralgit01.raleigh.ibm.com/gerrit1/35861 Tested-by: FSP CI Jenkins <fsp-CI-jenkins+hostboot@us.ibm.com> Reviewed-by: Andres A. Lugo-Reyes <aalugore@us.ibm.com> Reviewed-by: Christopher J. Cain <cjcain@us.ibm.com> Reviewed-by: Wael El-Essawy <welessa@us.ibm.com>
Diffstat (limited to 'src/occ_405/reset.c')
-rwxr-xr-xsrc/occ_405/reset.c8
1 files changed, 1 insertions, 7 deletions
diff --git a/src/occ_405/reset.c b/src/occ_405/reset.c
index 0d79add..b09ea00 100755
--- a/src/occ_405/reset.c
+++ b/src/occ_405/reset.c
@@ -74,9 +74,6 @@ bool isSafeStateRequested(void)
// End Function Specification
void reset_state_request(uint8_t i_request)
{
- //TODO: This needs to be changed so that G_reset_state operations are
- // atomic.
-
switch(i_request)
{
case RESET_REQUESTED_DUE_TO_ERROR:
@@ -102,8 +99,7 @@ void reset_state_request(uint8_t i_request)
// Post the semaphore to wakeup the thread that
// will put us into SAFE state.
-// TEMP -- THIS THREAD ISN"T ACTUALLY RUNNING IN PHASE1
-// ssx_semaphore_post(&G_dcomThreadWakeupSem);
+ ssx_semaphore_post(&G_dcomThreadWakeupSem);
// Set RTL Flags here too, depending how urgent it is that we stop
// running tasks.
@@ -119,7 +115,6 @@ void reset_state_request(uint8_t i_request)
// May need to add counter if multiple places request nominal
G_reset_state = NOMINAL_REQUESTED_DUE_TO_ERROR;
- //TODO: Will need to set some flag or event here
}
break;
@@ -131,7 +126,6 @@ void reset_state_request(uint8_t i_request)
// May need to add counter check if multiple places request nominal
G_reset_state = RESET_NOT_REQUESTED;
- //TODO: Will need to clear some flag or event here
}
break;
OpenPOWER on IntegriCloud