summaryrefslogtreecommitdiffstats
path: root/core/opal.c
diff options
context:
space:
mode:
authorBenjamin Herrenschmidt <benh@kernel.crashing.org>2015-02-18 14:57:19 +1100
committerStewart Smith <stewart@linux.vnet.ibm.com>2015-02-18 15:21:31 +1100
commit772c78a598aa42862fc7a6f5cc163c12291d7ac5 (patch)
tree8d7418f0cf1be8944bf94cec91def5da03c3e57b /core/opal.c
parentacad6ae04cb9064a47ea86902d1b8495fab8a929 (diff)
downloadtalos-skiboot-772c78a598aa42862fc7a6f5cc163c12291d7ac5.tar.gz
talos-skiboot-772c78a598aa42862fc7a6f5cc163c12291d7ac5.zip
Warn when pollers are called with a lock held
So we can start fixing those cases Signed-off-by: Benjamin Herrenschmidt <benh@kernel.crashing.org> Signed-off-by: Stewart Smith <stewart@linux.vnet.ibm.com>
Diffstat (limited to 'core/opal.c')
-rw-r--r--core/opal.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/core/opal.c b/core/opal.c
index fc18db3b..a49d0224 100644
--- a/core/opal.c
+++ b/core/opal.c
@@ -284,6 +284,11 @@ void opal_run_pollers(void)
{
struct opal_poll_entry *poll_ent;
+ if (this_cpu()->lock_depth) {
+ prlog(PR_ERR, "Running pollers with lock held !\n");
+ backtrace();
+ }
+
/* We run the timers first */
check_timers(false);
OpenPOWER on IntegriCloud