]> 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>
Thu, 17 Feb 2011 23:14:41 +0000 (15:14 -0800)
commite702bb35179b09bd5c0f08dcb6da7cfd743ed403
tree3523c9add57f68d932c7d7be041dff3eac416a91
parentce8f917731c9855a2612b2494330cfc8611f9306
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