diff options
Diffstat (limited to 'kernel/exit.c')
-rw-r--r-- | kernel/exit.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/kernel/exit.c b/kernel/exit.c index 4b4042f9bc6a..752d2c0abd19 100644 --- a/kernel/exit.c +++ b/kernel/exit.c | |||
@@ -935,8 +935,6 @@ void do_exit(long code) | |||
935 | schedule(); | 935 | schedule(); |
936 | } | 936 | } |
937 | 937 | ||
938 | exit_irq_thread(); | ||
939 | |||
940 | exit_signals(tsk); /* sets PF_EXITING */ | 938 | exit_signals(tsk); /* sets PF_EXITING */ |
941 | /* | 939 | /* |
942 | * tsk->flags are checked in the futex code to protect against | 940 | * tsk->flags are checked in the futex code to protect against |
@@ -945,6 +943,8 @@ void do_exit(long code) | |||
945 | smp_mb(); | 943 | smp_mb(); |
946 | raw_spin_unlock_wait(&tsk->pi_lock); | 944 | raw_spin_unlock_wait(&tsk->pi_lock); |
947 | 945 | ||
946 | exit_irq_thread(); | ||
947 | |||
948 | if (unlikely(in_atomic())) | 948 | if (unlikely(in_atomic())) |
949 | printk(KERN_INFO "note: %s[%d] exited with preempt_count %d\n", | 949 | printk(KERN_INFO "note: %s[%d] exited with preempt_count %d\n", |
950 | current->comm, task_pid_nr(current), | 950 | current->comm, task_pid_nr(current), |