diff options
Diffstat (limited to 'kernel/smpboot.c')
-rw-r--r-- | kernel/smpboot.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/kernel/smpboot.c b/kernel/smpboot.c index 13bc43d1fb22..fc0d8270f69e 100644 --- a/kernel/smpboot.c +++ b/kernel/smpboot.c | |||
@@ -122,12 +122,12 @@ static int smpboot_thread_fn(void *data) | |||
122 | 122 | ||
123 | if (kthread_should_park()) { | 123 | if (kthread_should_park()) { |
124 | __set_current_state(TASK_RUNNING); | 124 | __set_current_state(TASK_RUNNING); |
125 | preempt_enable(); | ||
126 | if (ht->park && td->status == HP_THREAD_ACTIVE) { | 125 | if (ht->park && td->status == HP_THREAD_ACTIVE) { |
127 | BUG_ON(td->cpu != smp_processor_id()); | 126 | BUG_ON(td->cpu != smp_processor_id()); |
128 | ht->park(td->cpu); | 127 | ht->park(td->cpu); |
129 | td->status = HP_THREAD_PARKED; | 128 | td->status = HP_THREAD_PARKED; |
130 | } | 129 | } |
130 | preempt_enable(); | ||
131 | kthread_parkme(); | 131 | kthread_parkme(); |
132 | /* We might have been woken for stop */ | 132 | /* We might have been woken for stop */ |
133 | continue; | 133 | continue; |