summaryrefslogtreecommitdiffstats
path: root/core/opal.c
diff options
context:
space:
mode:
authorMatt Brown <matthew.brown.dev@gmail.com>2017-07-07 11:52:44 +1000
committerStewart Smith <stewart@linux.vnet.ibm.com>2018-03-07 17:21:13 +1100
commit84186ef0944c9413262f0974ddab3fb1343ccfe8 (patch)
treee3dfc69286b036f7faa9e0bf344e58bd303b86c6 /core/opal.c
parent2d4c774c2a3ad5413272e9d17827e4eb3956be87 (diff)
downloadtalos-skiboot-84186ef0944c9413262f0974ddab3fb1343ccfe8.tar.gz
talos-skiboot-84186ef0944c9413262f0974ddab3fb1343ccfe8.zip
core/lock: Add lock timeout warnings
There are currently no timeout warnings for locks in skiboot. We assume that the lock will eventually become free, which may not always be the case. This patch adds timeout warnings for locks. Any lock which spins for more than 5 seconds will throw a warning and stacktrace for that thread. This is useful for debugging siturations where a lock which hang, waiting for the lock to be freed. Signed-off-by: Matt Brown <matthew.brown.dev@gmail.com> Reviewed-by: Cyril Bur <cyril.bur@au1.ibm.com> [stewart: make code match comment, have 5s timeout] Signed-off-by: Stewart Smith <stewart@linux.vnet.ibm.com>
Diffstat (limited to 'core/opal.c')
0 files changed, 0 insertions, 0 deletions
OpenPOWER on IntegriCloud