aboutsummaryrefslogtreecommitdiffstats
path: root/samples/firmware_class
diff options
context:
space:
mode:
authorSteven Rostedt <srostedt@redhat.com>2009-02-14 01:42:44 -0500
committerSteven Rostedt <srostedt@redhat.com>2009-02-16 18:15:31 -0500
commite6ea44e9b4c12325337cd1c06103cd515a1c02b2 (patch)
tree01d13cb3dfb6031c220b42cedc7df7c84dc116b4 /samples/firmware_class
parent52baf11922db7377b580dd5448a07f71c6a35611 (diff)
ftrace: consolidate mutexes
Impact: clean up Now that ftrace_lock is a mutex, there is no reason to have three different mutexes protecting similar data. All the mutex paths are not in hot paths, so having a mutex to cover more data is not a problem. This patch removes the ftrace_sysctl_lock and ftrace_start_lock and uses the ftrace_lock to protect the locations that were protected by these locks. By doing so, this change also removes some of the lock nesting that was taking place. There are still more mutexes in ftrace.c that can probably be consolidated, but they can be dealt with later. We need to be careful about the way the locks are nested, and by consolidating, we can cause a recursive deadlock. Signed-off-by: Steven Rostedt <srostedt@redhat.com>
Diffstat (limited to 'samples/firmware_class')
0 files changed, 0 insertions, 0 deletions