aboutsummaryrefslogtreecommitdiffstats
path: root/kernel/trace/trace_functions_graph.c
diff options
context:
space:
mode:
authorJohn Stultz <johnstul@us.ibm.com>2010-02-22 21:41:36 -0500
committerThomas Gleixner <tglx@linutronix.de>2010-04-27 11:33:00 -0400
commita3426080b810723f1bed95b8d08146738126d324 (patch)
tree65c82707c5112b7fc98a49ded49e7e02b9daa46f /kernel/trace/trace_functions_graph.c
parent070976b5b038218900648ea4cc88786d5dfcd58d (diff)
Fixup get_cpu_var holds over spinlock() calls.
In Nick's patches, there's a few spots that use get_cpu_var to access a per-cpu spinlock. However, the put_cpu_var isn't called until after the lock is aquired and released. This causes mightsleep warnings with -rt. Move the put_cpu_var above the spin_lock/unlock call to avoid this. Not sure if this is 100% right, but seems to work. Not sure what holding the get does on the lock, since once we have the lock, the reference shouldn't change. Other users of the same lock don't bother with the get_cpu_var method and just use per_cpu. Signed-off-by: John Stultz <johnstul@us.ibm.com> Signed-off-by: Thomas Gleixner <tglx@linutronix.de>
Diffstat (limited to 'kernel/trace/trace_functions_graph.c')
0 files changed, 0 insertions, 0 deletions