From: Li Zhong Date: Sat, 7 Jan 2012 17:54:52 +0000 (+0000) Subject: powerpc: Fix unpaired __trace_hcall_entry and __trace_hcall_exit X-Git-Tag: v3.3-rc1~68^2 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=ebb7f616abf6ee11603e6b63aa6c5f84c80a17d0;p=pandora-kernel.git powerpc: Fix unpaired __trace_hcall_entry and __trace_hcall_exit Unpaired calling of __trace_hcall_entry and __trace_hcall_exit could cause incorrect preempt count. And it might happen as the global variable hcall_tracepoint_refcount is checked separately before calling them. Instead, store the value that was used on entry in the stack frame and retreive it from there after the call Reported-by: Paul E. McKenney Signed-off-by: Li Zhong Tested-by: Paul E. McKenney Signed-off-by: Benjamin Herrenschmidt --- Reading git-diff-tree failed