From 2d6ab3cf820134bd3086139adea76f51bbdceb64 Mon Sep 17 00:00:00 2001 From: Patrick Williams Date: Tue, 22 Oct 2013 15:10:18 -0500 Subject: Handle winkle-wakeup times in slave cores. Change-Id: I6978d66ecfdef57da9754e6251d2ac1d3d078210 RTC: 73559 Reviewed-on: http://gfw160.aus.stglabs.ibm.com:8080/gerrit/6851 Tested-by: Jenkins Server Reviewed-by: A. Patrick Williams III --- src/usr/intr/intrrp.H | 15 +++++++++++++++ 1 file changed, 15 insertions(+) (limited to 'src/usr/intr/intrrp.H') diff --git a/src/usr/intr/intrrp.H b/src/usr/intr/intrrp.H index 488f27706..e2495fb27 100644 --- a/src/usr/intr/intrrp.H +++ b/src/usr/intr/intrrp.H @@ -30,6 +30,7 @@ #include #include #include +#include #include #include #include @@ -293,6 +294,14 @@ namespace INTR }; + enum + { + CPU_WAKEUP_SECONDS = 1, + CPU_WAKEUP_INTERVAL_COUNT = 10, + CPU_WAKEUP_INTERVAL_NS = (NS_PER_SEC * CPU_WAKEUP_SECONDS) / + CPU_WAKEUP_INTERVAL_COUNT, + }; + typedef std::map Registry_t; typedef std::vector CpuList_t; typedef std::vector ChipList_t; @@ -545,6 +554,12 @@ namespace INTR */ static errlHndl_t checkAddress(uint64_t i_addr); + /** + * Background thread to handle if a core doesn't wake up. + * @param[in] _pir - The PIR value (as void*) to check for. + */ + static void* handleCpuTimeout(void* _pir); + }; }; // INTR namespace -- cgit v1.2.1