Attn: Quiesce host on SBE vital
When an SBE vital is detected the attention handler will transition the
host to the quiesce state. Code has also been added to make a call to
thread_stop_all (libpdbg) before transitioning host (mpipl and
quiesce cases).
Signed-off-by: Ben Tyner <ben.tyner@ibm.com>
Change-Id: Idac4680e2cb9eacedb6be7b70ae8b0d60dde66b5
diff --git a/attn/attn_handler.cpp b/attn/attn_handler.cpp
index d1f028d..8a5042d 100644
--- a/attn/attn_handler.cpp
+++ b/attn/attn_handler.cpp
@@ -2,11 +2,13 @@
#include <analyzer/analyzer_main.hpp>
#include <attn/attention.hpp>
+#include <attn/attn_common.hpp>
#include <attn/attn_config.hpp>
#include <attn/attn_handler.hpp>
#include <attn/attn_logging.hpp>
#include <attn/bp_handler.hpp>
#include <attn/ti_handler.hpp>
+#include <attn/vital_handler.hpp>
#include <algorithm>
#include <iomanip>
@@ -18,15 +20,6 @@
{
/**
- * @brief Handle SBE vital attention
- *
- * @param i_attention Attention object
- * @return 0 indicates that the vital attention was successfully handled
- * 1 indicates that the vital attention was NOT successfully handled
- */
-int handleVital(Attention* i_attention);
-
-/**
* @brief Handle checkstop attention
*
* @param i_attention Attention object
@@ -204,33 +197,6 @@
}
/**
- * @brief Handle SBE vital attention
- *
- * @param i_attention Attention object
- * @return 0 indicates that the vital attention was successfully handled
- * 1 indicates that the vital attention was NOT successfully handled
- */
-int handleVital(Attention* i_attention)
-{
- int rc = RC_SUCCESS; // assume vital handled
-
- trace<level::INFO>("vital handler started");
-
- // if vital handling enabled, handle vital attention
- if (false == (i_attention->getConfig()->getFlag(enVital)))
- {
- trace<level::INFO>("vital handling disabled");
- rc = RC_NOT_HANDLED;
- }
- else
- {
- eventVital();
- }
-
- return rc;
-}
-
-/**
* @brief Handle checkstop attention
*
* @param i_attention Attention object