diff options
Diffstat (limited to 'kernel/sched.c')
-rw-r--r-- | kernel/sched.c | 9 |
1 files changed, 1 insertions, 8 deletions
diff --git a/kernel/sched.c b/kernel/sched.c index 58d66ea7d200..a172494a9a63 100644 --- a/kernel/sched.c +++ b/kernel/sched.c | |||
@@ -32,7 +32,6 @@ | |||
32 | #include <linux/init.h> | 32 | #include <linux/init.h> |
33 | #include <linux/uaccess.h> | 33 | #include <linux/uaccess.h> |
34 | #include <linux/highmem.h> | 34 | #include <linux/highmem.h> |
35 | #include <linux/smp_lock.h> | ||
36 | #include <asm/mmu_context.h> | 35 | #include <asm/mmu_context.h> |
37 | #include <linux/interrupt.h> | 36 | #include <linux/interrupt.h> |
38 | #include <linux/capability.h> | 37 | #include <linux/capability.h> |
@@ -4086,9 +4085,6 @@ need_resched: | |||
4086 | rcu_note_context_switch(cpu); | 4085 | rcu_note_context_switch(cpu); |
4087 | prev = rq->curr; | 4086 | prev = rq->curr; |
4088 | 4087 | ||
4089 | release_kernel_lock(prev); | ||
4090 | need_resched_nonpreemptible: | ||
4091 | |||
4092 | schedule_debug(prev); | 4088 | schedule_debug(prev); |
4093 | 4089 | ||
4094 | if (sched_feat(HRTICK)) | 4090 | if (sched_feat(HRTICK)) |
@@ -4148,9 +4144,6 @@ need_resched_nonpreemptible: | |||
4148 | 4144 | ||
4149 | post_schedule(rq); | 4145 | post_schedule(rq); |
4150 | 4146 | ||
4151 | if (unlikely(reacquire_kernel_lock(prev))) | ||
4152 | goto need_resched_nonpreemptible; | ||
4153 | |||
4154 | preempt_enable_no_resched(); | 4147 | preempt_enable_no_resched(); |
4155 | if (need_resched()) | 4148 | if (need_resched()) |
4156 | goto need_resched; | 4149 | goto need_resched; |
@@ -8277,7 +8270,7 @@ static inline int preempt_count_equals(int preempt_offset) | |||
8277 | { | 8270 | { |
8278 | int nested = (preempt_count() & ~PREEMPT_ACTIVE) + rcu_preempt_depth(); | 8271 | int nested = (preempt_count() & ~PREEMPT_ACTIVE) + rcu_preempt_depth(); |
8279 | 8272 | ||
8280 | return (nested == PREEMPT_INATOMIC_BASE + preempt_offset); | 8273 | return (nested == preempt_offset); |
8281 | } | 8274 | } |
8282 | 8275 | ||
8283 | void __might_sleep(const char *file, int line, int preempt_offset) | 8276 | void __might_sleep(const char *file, int line, int preempt_offset) |