diff options
author | Li Zhong <zhong@linux.vnet.ibm.com> | 2012-01-07 18:54:52 +0100 |
---|---|---|
committer | Benjamin Herrenschmidt <benh@kernel.crashing.org> | 2012-01-11 02:50:26 +0100 |
commit | ebb7f616abf6ee11603e6b63aa6c5f84c80a17d0 (patch) | |
tree | 8912e1ebd7d665286e7bc28ec30688517835da87 /drivers/net/dsa | |
parent | powerpc: Fix RCU idle and hcall tracing (diff) | |
download | linux-ebb7f616abf6ee11603e6b63aa6c5f84c80a17d0.tar.xz linux-ebb7f616abf6ee11603e6b63aa6c5f84c80a17d0.zip |
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 <paulmck@linux.vnet.ibm.com>
Signed-off-by: Li Zhong <zhong@linux.vnet.ibm.com>
Tested-by: Paul E. McKenney <paulmck@linux.vnet.ibm.com>
Signed-off-by: Benjamin Herrenschmidt <benh@kernel.crashing.org>
Diffstat (limited to 'drivers/net/dsa')
0 files changed, 0 insertions, 0 deletions