Skip to content

Commit

Permalink
tracing: don't trace the BKL
Browse files Browse the repository at this point in the history
No reason to trace it when the last user is gone.

Signed-off-by: Arnd Bergmann <[email protected]>
Acked-by: Frederic Weisbecker <[email protected]>
  • Loading branch information
arndb committed Mar 1, 2011
1 parent 4688a06 commit f51b452
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 68 deletions.
61 changes: 0 additions & 61 deletions include/trace/events/bkl.h

This file was deleted.

7 changes: 0 additions & 7 deletions lib/kernel_lock.c
Original file line number Diff line number Diff line change
Expand Up @@ -10,9 +10,6 @@
#include <linux/semaphore.h>
#include <linux/smp_lock.h>

#define CREATE_TRACE_POINTS
#include <trace/events/bkl.h>

/*
* The 'big kernel lock'
*
Expand Down Expand Up @@ -120,8 +117,6 @@ void __lockfunc _lock_kernel(const char *func, const char *file, int line)
{
int depth = current->lock_depth + 1;

trace_lock_kernel(func, file, line);

if (likely(!depth)) {
might_sleep();
__lock_kernel();
Expand All @@ -134,8 +129,6 @@ void __lockfunc _unlock_kernel(const char *func, const char *file, int line)
BUG_ON(current->lock_depth < 0);
if (likely(--current->lock_depth < 0))
__unlock_kernel();

trace_unlock_kernel(func, file, line);
}

EXPORT_SYMBOL(_lock_kernel);
Expand Down

0 comments on commit f51b452

Please sign in to comment.