]> git.karo-electronics.de Git - karo-tx-linux.git/commit
powerpc: Fix hcall tracepoint recursion
authorAnton Blanchard <anton@samba.org>
Thu, 21 Oct 2010 00:52:12 +0000 (00:52 +0000)
committerGreg Kroah-Hartman <gregkh@suse.de>
Mon, 21 Mar 2011 19:44:56 +0000 (12:44 -0700)
commit4c0821e7a7ebca3614995845b91a640c6919fdc5
treed5c6b2271858199b0bb9fd537714a27a9b91dfd1
parent1f9b4d210cc74010c9b6f24dc854bf1da52262f8
powerpc: Fix hcall tracepoint recursion

commit 57cdfdf829a850a317425ed93c6a576c9ee6329c upstream.

Spinlocks on shared processor partitions use H_YIELD to notify the
hypervisor we are waiting on another virtual CPU. Unfortunately this means
the hcall tracepoints can recurse.

The patch below adds a percpu depth and checks it on both the entry and
exit hcall tracepoints.

Signed-off-by: Anton Blanchard <anton@samba.org>
Acked-by: Steven Rostedt <rostedt@goodmis.org>
Signed-off-by: Benjamin Herrenschmidt <benh@kernel.crashing.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
arch/powerpc/platforms/pseries/lpar.c