summaryrefslogtreecommitdiffstats
path: root/include
diff options
context:
space:
mode:
authorBenjamin Herrenschmidt <benh@kernel.crashing.org>2015-02-18 14:57:18 +1100
committerStewart Smith <stewart@linux.vnet.ibm.com>2015-02-18 15:20:53 +1100
commitacad6ae04cb9064a47ea86902d1b8495fab8a929 (patch)
tree0d4a941f0b6a64660f8bea2b84254a9388ba366e /include
parent539487bae4b77d66b5966f5396609f28312bd6ae (diff)
downloadblackbird-skiboot-acad6ae04cb9064a47ea86902d1b8495fab8a929.tar.gz
blackbird-skiboot-acad6ae04cb9064a47ea86902d1b8495fab8a929.zip
lock: Add lock depth recording per CPU
We want to move to pollers being run inly when no lock is held so let's start recording lock depth. It will also be a useful debugging tool. Signed-off-by: Benjamin Herrenschmidt <benh@kernel.crashing.org> Signed-off-by: Stewart Smith <stewart@linux.vnet.ibm.com>
Diffstat (limited to 'include')
-rw-r--r--include/cpu.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/include/cpu.h b/include/cpu.h
index 6112ab24..1d7c7c51 100644
--- a/include/cpu.h
+++ b/include/cpu.h
@@ -54,6 +54,7 @@ struct cpu_thread {
struct trace_info *trace;
uint64_t save_r1;
void *icp_regs;
+ uint32_t lock_depth;
uint32_t con_suspend;
bool con_need_flush;
bool in_mcount;
OpenPOWER on IntegriCloud