diff options
author | Arnd Bergmann <arnd@arndb.de> | 2011-01-25 15:54:50 -0500 |
---|---|---|
committer | Arnd Bergmann <arnd@arndb.de> | 2011-03-01 18:02:39 -0500 |
commit | f51b452bed4ae5c20e1f8a790e4ed8663d909a40 (patch) | |
tree | 3c028a2cb74253d74cf4ed15b2900531217cb6b6 /lib | |
parent | 4688a066ecf60086ea82f68edb3b036b567d2c08 (diff) |
tracing: don't trace the BKL
No reason to trace it when the last user is gone.
Signed-off-by: Arnd Bergmann <arnd@arndb.de>
Acked-by: Frederic Weisbecker <fweisbec@gmail.com>
Diffstat (limited to 'lib')
-rw-r--r-- | lib/kernel_lock.c | 7 |
1 files changed, 0 insertions, 7 deletions
diff --git a/lib/kernel_lock.c b/lib/kernel_lock.c index b135d04aa48a..d80e12265862 100644 --- a/lib/kernel_lock.c +++ b/lib/kernel_lock.c | |||
@@ -10,9 +10,6 @@ | |||
10 | #include <linux/semaphore.h> | 10 | #include <linux/semaphore.h> |
11 | #include <linux/smp_lock.h> | 11 | #include <linux/smp_lock.h> |
12 | 12 | ||
13 | #define CREATE_TRACE_POINTS | ||
14 | #include <trace/events/bkl.h> | ||
15 | |||
16 | /* | 13 | /* |
17 | * The 'big kernel lock' | 14 | * The 'big kernel lock' |
18 | * | 15 | * |
@@ -120,8 +117,6 @@ void __lockfunc _lock_kernel(const char *func, const char *file, int line) | |||
120 | { | 117 | { |
121 | int depth = current->lock_depth + 1; | 118 | int depth = current->lock_depth + 1; |
122 | 119 | ||
123 | trace_lock_kernel(func, file, line); | ||
124 | |||
125 | if (likely(!depth)) { | 120 | if (likely(!depth)) { |
126 | might_sleep(); | 121 | might_sleep(); |
127 | __lock_kernel(); | 122 | __lock_kernel(); |
@@ -134,8 +129,6 @@ void __lockfunc _unlock_kernel(const char *func, const char *file, int line) | |||
134 | BUG_ON(current->lock_depth < 0); | 129 | BUG_ON(current->lock_depth < 0); |
135 | if (likely(--current->lock_depth < 0)) | 130 | if (likely(--current->lock_depth < 0)) |
136 | __unlock_kernel(); | 131 | __unlock_kernel(); |
137 | |||
138 | trace_unlock_kernel(func, file, line); | ||
139 | } | 132 | } |
140 | 133 | ||
141 | EXPORT_SYMBOL(_lock_kernel); | 134 | EXPORT_SYMBOL(_lock_kernel); |