diff options
Diffstat (limited to 'kernel/trace/trace.c')
-rw-r--r-- | kernel/trace/trace.c | 8 |
1 files changed, 0 insertions, 8 deletions
diff --git a/kernel/trace/trace.c b/kernel/trace/trace.c index ed1032d6f81d..ba14a22be4cc 100644 --- a/kernel/trace/trace.c +++ b/kernel/trace/trace.c | |||
@@ -741,13 +741,6 @@ __acquires(kernel_lock) | |||
741 | return -1; | 741 | return -1; |
742 | } | 742 | } |
743 | 743 | ||
744 | /* | ||
745 | * When this gets called we hold the BKL which means that | ||
746 | * preemption is disabled. Various trace selftests however | ||
747 | * need to disable and enable preemption for successful tests. | ||
748 | * So we drop the BKL here and grab it after the tests again. | ||
749 | */ | ||
750 | unlock_kernel(); | ||
751 | mutex_lock(&trace_types_lock); | 744 | mutex_lock(&trace_types_lock); |
752 | 745 | ||
753 | tracing_selftest_running = true; | 746 | tracing_selftest_running = true; |
@@ -829,7 +822,6 @@ __acquires(kernel_lock) | |||
829 | #endif | 822 | #endif |
830 | 823 | ||
831 | out_unlock: | 824 | out_unlock: |
832 | lock_kernel(); | ||
833 | return ret; | 825 | return ret; |
834 | } | 826 | } |
835 | 827 | ||