diff options
Diffstat (limited to 'kernel')
-rw-r--r-- | kernel/fork.c | 1 | ||||
-rw-r--r-- | kernel/mutex.c | 7 | ||||
-rw-r--r-- | kernel/sched.c | 11 | ||||
-rw-r--r-- | kernel/sched_debug.c | 4 | ||||
-rw-r--r-- | kernel/trace/trace_kprobe.c | 1 |
5 files changed, 1 insertions, 23 deletions
diff --git a/kernel/fork.c b/kernel/fork.c index e7548dee636b..aca62871a4f9 100644 --- a/kernel/fork.c +++ b/kernel/fork.c | |||
@@ -1103,7 +1103,6 @@ static struct task_struct *copy_process(unsigned long clone_flags, | |||
1103 | 1103 | ||
1104 | posix_cpu_timers_init(p); | 1104 | posix_cpu_timers_init(p); |
1105 | 1105 | ||
1106 | p->lock_depth = -1; /* -1 = no lock */ | ||
1107 | do_posix_clock_monotonic_gettime(&p->start_time); | 1106 | do_posix_clock_monotonic_gettime(&p->start_time); |
1108 | p->real_start_time = p->start_time; | 1107 | p->real_start_time = p->start_time; |
1109 | monotonic_to_bootbased(&p->real_start_time); | 1108 | monotonic_to_bootbased(&p->real_start_time); |
diff --git a/kernel/mutex.c b/kernel/mutex.c index fe4706cb0c5b..2c938e2337cd 100644 --- a/kernel/mutex.c +++ b/kernel/mutex.c | |||
@@ -163,13 +163,6 @@ __mutex_lock_common(struct mutex *lock, long state, unsigned int subclass, | |||
163 | struct task_struct *owner; | 163 | struct task_struct *owner; |
164 | 164 | ||
165 | /* | 165 | /* |
166 | * If we own the BKL, then don't spin. The owner of | ||
167 | * the mutex might be waiting on us to release the BKL. | ||
168 | */ | ||
169 | if (unlikely(current->lock_depth >= 0)) | ||
170 | break; | ||
171 | |||
172 | /* | ||
173 | * If there's an owner, wait for it to either | 166 | * If there's an owner, wait for it to either |
174 | * release the lock or go to sleep. | 167 | * release the lock or go to sleep. |
175 | */ | 168 | */ |
diff --git a/kernel/sched.c b/kernel/sched.c index 8cb0a5769a16..9cde2dd229c9 100644 --- a/kernel/sched.c +++ b/kernel/sched.c | |||
@@ -4121,12 +4121,6 @@ static inline void schedule_debug(struct task_struct *prev) | |||
4121 | profile_hit(SCHED_PROFILING, __builtin_return_address(0)); | 4121 | profile_hit(SCHED_PROFILING, __builtin_return_address(0)); |
4122 | 4122 | ||
4123 | schedstat_inc(this_rq(), sched_count); | 4123 | schedstat_inc(this_rq(), sched_count); |
4124 | #ifdef CONFIG_SCHEDSTATS | ||
4125 | if (unlikely(prev->lock_depth >= 0)) { | ||
4126 | schedstat_inc(this_rq(), rq_sched_info.bkl_count); | ||
4127 | schedstat_inc(prev, sched_info.bkl_count); | ||
4128 | } | ||
4129 | #endif | ||
4130 | } | 4124 | } |
4131 | 4125 | ||
4132 | static void put_prev_task(struct rq *rq, struct task_struct *prev) | 4126 | static void put_prev_task(struct rq *rq, struct task_struct *prev) |
@@ -5852,11 +5846,8 @@ void __cpuinit init_idle(struct task_struct *idle, int cpu) | |||
5852 | raw_spin_unlock_irqrestore(&rq->lock, flags); | 5846 | raw_spin_unlock_irqrestore(&rq->lock, flags); |
5853 | 5847 | ||
5854 | /* Set the preempt count _outside_ the spinlocks! */ | 5848 | /* Set the preempt count _outside_ the spinlocks! */ |
5855 | #if defined(CONFIG_PREEMPT) | ||
5856 | task_thread_info(idle)->preempt_count = (idle->lock_depth >= 0); | ||
5857 | #else | ||
5858 | task_thread_info(idle)->preempt_count = 0; | 5849 | task_thread_info(idle)->preempt_count = 0; |
5859 | #endif | 5850 | |
5860 | /* | 5851 | /* |
5861 | * The idle tasks have their own, simple scheduling class: | 5852 | * The idle tasks have their own, simple scheduling class: |
5862 | */ | 5853 | */ |
diff --git a/kernel/sched_debug.c b/kernel/sched_debug.c index 3669bec6e130..a6710a112b4f 100644 --- a/kernel/sched_debug.c +++ b/kernel/sched_debug.c | |||
@@ -296,9 +296,6 @@ static void print_cpu(struct seq_file *m, int cpu) | |||
296 | P(ttwu_count); | 296 | P(ttwu_count); |
297 | P(ttwu_local); | 297 | P(ttwu_local); |
298 | 298 | ||
299 | SEQ_printf(m, " .%-30s: %d\n", "bkl_count", | ||
300 | rq->rq_sched_info.bkl_count); | ||
301 | |||
302 | #undef P | 299 | #undef P |
303 | #undef P64 | 300 | #undef P64 |
304 | #endif | 301 | #endif |
@@ -441,7 +438,6 @@ void proc_sched_show_task(struct task_struct *p, struct seq_file *m) | |||
441 | P(se.statistics.wait_count); | 438 | P(se.statistics.wait_count); |
442 | PN(se.statistics.iowait_sum); | 439 | PN(se.statistics.iowait_sum); |
443 | P(se.statistics.iowait_count); | 440 | P(se.statistics.iowait_count); |
444 | P(sched_info.bkl_count); | ||
445 | P(se.nr_migrations); | 441 | P(se.nr_migrations); |
446 | P(se.statistics.nr_migrations_cold); | 442 | P(se.statistics.nr_migrations_cold); |
447 | P(se.statistics.nr_failed_migrations_affine); | 443 | P(se.statistics.nr_failed_migrations_affine); |
diff --git a/kernel/trace/trace_kprobe.c b/kernel/trace/trace_kprobe.c index 35d55a386145..f925c45f0afa 100644 --- a/kernel/trace/trace_kprobe.c +++ b/kernel/trace/trace_kprobe.c | |||
@@ -53,7 +53,6 @@ const char *reserved_field_names[] = { | |||
53 | "common_preempt_count", | 53 | "common_preempt_count", |
54 | "common_pid", | 54 | "common_pid", |
55 | "common_tgid", | 55 | "common_tgid", |
56 | "common_lock_depth", | ||
57 | FIELD_STRING_IP, | 56 | FIELD_STRING_IP, |
58 | FIELD_STRING_RETIP, | 57 | FIELD_STRING_RETIP, |
59 | FIELD_STRING_FUNC, | 58 | FIELD_STRING_FUNC, |