summaryrefslogtreecommitdiffstats
path: root/include
diff options
context:
space:
mode:
authorAkshay Adiga <akshay.adiga@linux.vnet.ibm.com>2018-01-04 16:58:01 +0530
committerStewart Smith <stewart@linux.vnet.ibm.com>2018-01-14 21:05:51 -0600
commit313ece47903e154e3fc46eb041c75556e6652771 (patch)
tree9feaee03b012236220fa045d41cb0fbb772433fe /include
parent9aeb00de9cbdeb2efa03e815ae7d4ea77667f788 (diff)
downloadblackbird-skiboot-313ece47903e154e3fc46eb041c75556e6652771.tar.gz
blackbird-skiboot-313ece47903e154e3fc46eb041c75556e6652771.zip
SLW: Use wakeup_engine state to handle errors in wakeup engine
Patch introduces wakeup_engine_state which replaces a bool has_wakeup_engine. wakeup_engine_state can have 3 states : - WAKEUP_ENGINE_PRESENT : When everything is good. - WAKEUP_ENGINE_NOT_PRESENT : When wakeup_engine is not correctly detected. - WAKEUP_ENGINE_FAILED : If any operation on wakeup_engine failed. Signed-off-by: Akshay Adiga <akshay.adiga@linux.vnet.ibm.com> Signed-off-by: Stewart Smith <stewart@linux.vnet.ibm.com>
Diffstat (limited to 'include')
-rw-r--r--include/skiboot.h8
1 files changed, 8 insertions, 0 deletions
diff --git a/include/skiboot.h b/include/skiboot.h
index 8141b617..689bbb1c 100644
--- a/include/skiboot.h
+++ b/include/skiboot.h
@@ -302,6 +302,14 @@ extern void prd_fsp_occ_load_start(u32 proc);
/* Flatten device-tree */
extern void *create_dtb(const struct dt_node *root, bool exclusive);
+/* Track failure in Wakup engine */
+enum wakeup_engine_states {
+ WAKEUP_ENGINE_NOT_PRESENT,
+ WAKEUP_ENGINE_PRESENT,
+ WAKEUP_ENGINE_FAILED
+};
+extern enum wakeup_engine_states wakeup_engine_state;
+
/* SLW reinit function for switching core settings */
extern int64_t slw_reinit(uint64_t flags);
OpenPOWER on IntegriCloud