diff options
Diffstat (limited to 'arch/powerpc/kernel/idle.c')
-rw-r--r-- | arch/powerpc/kernel/idle.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/arch/powerpc/kernel/idle.c b/arch/powerpc/kernel/idle.c index 0a48bf5db6c8..65035141552b 100644 --- a/arch/powerpc/kernel/idle.c +++ b/arch/powerpc/kernel/idle.c | |||
@@ -101,11 +101,11 @@ void cpu_idle(void) | |||
101 | ppc64_runlatch_on(); | 101 | ppc64_runlatch_on(); |
102 | rcu_idle_exit(); | 102 | rcu_idle_exit(); |
103 | tick_nohz_idle_exit(); | 103 | tick_nohz_idle_exit(); |
104 | preempt_enable_no_resched(); | 104 | if (cpu_should_die()) { |
105 | if (cpu_should_die()) | 105 | preempt_enable_no_resched(); |
106 | cpu_die(); | 106 | cpu_die(); |
107 | schedule(); | 107 | } |
108 | preempt_disable(); | 108 | schedule_preempt_disabled(); |
109 | } | 109 | } |
110 | } | 110 | } |
111 | 111 | ||