aboutsummaryrefslogtreecommitdiffstats
path: root/arch
diff options
context:
space:
mode:
Diffstat (limited to 'arch')
-rw-r--r--arch/x86/kernel/process_64.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/arch/x86/kernel/process_64.c b/arch/x86/kernel/process_64.c
index 78d80067b7f9..a0130eb2fa50 100644
--- a/arch/x86/kernel/process_64.c
+++ b/arch/x86/kernel/process_64.c
@@ -170,14 +170,13 @@ void cpu_idle(void)
170 current_thread_info()->status |= TS_POLLING; 170 current_thread_info()->status |= TS_POLLING;
171 /* endless idle loop with no priority at all */ 171 /* endless idle loop with no priority at all */
172 while (1) { 172 while (1) {
173 tick_nohz_stop_sched_tick();
173 while (!need_resched()) { 174 while (!need_resched()) {
174 void (*idle)(void); 175 void (*idle)(void);
175 176
176 if (__get_cpu_var(cpu_idle_state)) 177 if (__get_cpu_var(cpu_idle_state))
177 __get_cpu_var(cpu_idle_state) = 0; 178 __get_cpu_var(cpu_idle_state) = 0;
178 179
179 tick_nohz_stop_sched_tick();
180
181 rmb(); 180 rmb();
182 idle = pm_idle; 181 idle = pm_idle;
183 if (!idle) 182 if (!idle)