summaryrefslogtreecommitdiffstats
path: root/src/occ_405/amec/amec_slave_smh.c
diff options
context:
space:
mode:
authorAndres Lugo-Reyes <aalugore@us.ibm.com>2017-02-22 14:59:49 -0600
committerWilliam A. Bryan <wilbryan@us.ibm.com>2017-04-27 13:17:35 -0400
commitf19200513b5c918bf9405616811280c4c8ae2c09 (patch)
treeb7fab9dbb21902b753992b5d7ac73d8578760760 /src/occ_405/amec/amec_slave_smh.c
parenta478ce1ca63fbd3acc75a965fdcb199e86c51afe (diff)
downloadtalos-occ-f19200513b5c918bf9405616811280c4c8ae2c09.tar.gz
talos-occ-f19200513b5c918bf9405616811280c4c8ae2c09.zip
WOF: PGPE WOF Control infrastructure
Change-Id: I8dd1205c2c05c183650c1c42a3649fefc8048815 RTC:166301 Reviewed-on: http://ralgit01.raleigh.ibm.com/gerrit1/37251 Tested-by: FSP CI Jenkins <fsp-CI-jenkins+hostboot@us.ibm.com> Reviewed-by: Martha Broyles <mbroyles@us.ibm.com> Reviewed-by: William A. Bryan <wilbryan@us.ibm.com>
Diffstat (limited to 'src/occ_405/amec/amec_slave_smh.c')
-rwxr-xr-xsrc/occ_405/amec/amec_slave_smh.c46
1 files changed, 9 insertions, 37 deletions
diff --git a/src/occ_405/amec/amec_slave_smh.c b/src/occ_405/amec/amec_slave_smh.c
index 9dde169..edf791b 100755
--- a/src/occ_405/amec/amec_slave_smh.c
+++ b/src/occ_405/amec/amec_slave_smh.c
@@ -65,8 +65,9 @@
extern dcom_slv_inbox_t G_dcom_slv_inbox_rx;
extern opal_proc_voting_reason_t G_amec_opal_proc_throt_reason;
extern uint16_t G_proc_fmax_mhz;
+extern GpeRequest G_wof_vfrt_req;
-//*************************************************************************/
+//*************************************************************************
// Macros
//*************************************************************************/
@@ -505,7 +506,7 @@ void amec_slv_state_3(void)
// End Function Specification
void amec_slv_state_4(void)
{
- AMEC_DBG("\tAMEC Slave State 4\n");
+ AMEC_DBG("\tAMEC Slave State 4\n");
/* Not yet supported TODO Centaur support RTC 163359
//-------------------------------------------------------
@@ -514,41 +515,12 @@ void amec_slv_state_4(void)
amec_update_centaur_sensors(CENTAUR_4);
*/
- //-------------------------------------------------------
- // Run WOF Algorithm
- //-------------------------------------------------------
- if( IS_OCC_STATE_ACTIVE() )
- {
-
- /* TODO: RTC 166301 - Logic to determine if WOF algorithm should run.
- // The WOF algorithm is to be run every 4ms. Since amec_slv_state_4
- // is run every 2ms, we need to skip every other invocation.
- static bool L_run_wof_algorithm = true;
- if( !L_run_wof_algorithm )
- {
- // When false, the last invocation decided we need to wait 2 ms
- // run wof algo next time.
- L_run_wof_algorithm = true;
- }
- else
- {
- //if IPC command is idle and ready to go
- //{
- //wof_main();
- L_run_wof_algorithm = false;
- //}
- //else if IPC command is still waiting
- //make thread wait another 2 ms
- //{
- // L_run_wof_algorithm = true;
- //}
- //else if IPC command is returning an error
- //{
- // flag the error, request a reset
- //}
- }
- */
- }
+ //-------------------------------------------------------
+ // Run WOF Algorithm
+ //-------------------------------------------------------
+/* TODO WOF full function testing on HW RTC 158075
+ call_wof_main();
+*/
}
OpenPOWER on IntegriCloud