ftrace: fix locking

we can hold all cpu trace buffer locks at once - put each into a
separate lock class.

Signed-off-by: Ingo Molnar <mingo@elte.hu>
Signed-off-by: Thomas Gleixner <tglx@linutronix.de>
This commit is contained in:
Ingo Molnar
2008-05-12 21:20:46 +02:00
committed by Thomas Gleixner
parent b3806b4316
commit d4c5a2f587
2 changed files with 4 additions and 5 deletions

View File

@@ -56,6 +56,7 @@ struct trace_array_cpu {
struct list_head trace_pages;
atomic_t disabled;
spinlock_t lock;
struct lock_class_key lock_key;
cycle_t time_offset;
/* these fields get copied into max-trace: */