diff options
author | Benjamin Herrenschmidt <benh@kernel.crashing.org> | 2015-02-18 14:57:18 +1100 |
---|---|---|
committer | Stewart Smith <stewart@linux.vnet.ibm.com> | 2015-02-18 15:20:53 +1100 |
commit | acad6ae04cb9064a47ea86902d1b8495fab8a929 (patch) | |
tree | 0d4a941f0b6a64660f8bea2b84254a9388ba366e /include | |
parent | 539487bae4b77d66b5966f5396609f28312bd6ae (diff) | |
download | skiboot-acad6ae04cb9064a47ea86902d1b8495fab8a929.zip skiboot-acad6ae04cb9064a47ea86902d1b8495fab8a929.tar.gz skiboot-acad6ae04cb9064a47ea86902d1b8495fab8a929.tar.bz2 |
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.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/include/cpu.h b/include/cpu.h index 6112ab2..1d7c7c5 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; |