diff options
author | Zane Shelley <zshelle@us.ibm.com> | 2014-01-17 10:10:19 -0600 |
---|---|---|
committer | Gerrit Code Review <hostboot@gfw160.aus.stglabs.ibm.com> | 2014-01-22 09:54:40 -0600 |
commit | 8cdb8decb81010baf0beec396f8b5dbeb216df8b (patch) | |
tree | 3533c70e97522e5784f61b1f1673b75356612714 /src/usr/hwpf/hwp/core_activate/core_activate.C | |
parent | 44f7757327777f888cb16334a075bc31a1ef7d9f (diff) | |
download | talos-hostboot-8cdb8decb81010baf0beec396f8b5dbeb216df8b.tar.gz talos-hostboot-8cdb8decb81010baf0beec396f8b5dbeb216df8b.zip |
PRD: Enable background scrubbing
Change-Id: I07575fed6c4a2c5f935c474ad1a52a3af0be51d6
Diffstat (limited to 'src/usr/hwpf/hwp/core_activate/core_activate.C')
-rw-r--r-- | src/usr/hwpf/hwp/core_activate/core_activate.C | 29 |
1 files changed, 18 insertions, 11 deletions
diff --git a/src/usr/hwpf/hwp/core_activate/core_activate.C b/src/usr/hwpf/hwp/core_activate/core_activate.C index beeeb13c3..0ba9ec6e6 100644 --- a/src/usr/hwpf/hwp/core_activate/core_activate.C +++ b/src/usr/hwpf/hwp/core_activate/core_activate.C @@ -74,6 +74,9 @@ #include "proc_post_winkle.H" #include "proc_check_slw_done.H" +// mss_scrub support +#include <diag/prdf/prdfMain.H> + namespace CORE_ACTIVATE { @@ -451,23 +454,27 @@ void* call_host_activate_slave_cores( void *io_pArgs ) // // Wrapper function to call mss_scrub // -void* call_mss_scrub( void *io_pArgs ) +void * call_mss_scrub( void * io_pArgs ) { - errlHndl_t l_errl = NULL; + IStepError l_stepError; - TRACDCOMP( ISTEPS_TRACE::g_trac_isteps_trace, - "call_mss_scrub entry" ); + TRACDCOMP( ISTEPS_TRACE::g_trac_isteps_trace, "call_mss_scrub entry" ); - TRACDCOMP( ISTEPS_TRACE::g_trac_isteps_trace, - "Note: call_mss_scrub is not directly executed by Hostboot " - "but is instead triggered by PRD. " - "Cronus executes this HWP directly" ); + errlHndl_t l_errl = PRDF::startScrub(); + if ( NULL != l_errl ) + { + TRACFCOMP( ISTEPS_TRACE::g_trac_isteps_trace, + "Error returned from call to PRDF::startScrub" ); - TRACDCOMP( ISTEPS_TRACE::g_trac_isteps_trace, - "call_mss_scrub exit" ); + l_stepError.addErrorDetails( l_errl ); + + errlCommit( l_errl, HWPF_COMP_ID ); + } + + TRACDCOMP( ISTEPS_TRACE::g_trac_isteps_trace, "call_mss_scrub exit" ); // end task, returning any errorlogs to IStepDisp - return l_errl; + return l_stepError.getErrorHandle(); } |