aboutsummaryrefslogtreecommitdiffstats
path: root/arch/x86_64/kernel
diff options
context:
space:
mode:
Diffstat (limited to 'arch/x86_64/kernel')
-rw-r--r--arch/x86_64/kernel/process.c7
1 files changed, 3 insertions, 4 deletions
diff --git a/arch/x86_64/kernel/process.c b/arch/x86_64/kernel/process.c
index d6fa41459c80..b596837a1527 100644
--- a/arch/x86_64/kernel/process.c
+++ b/arch/x86_64/kernel/process.c
@@ -110,7 +110,7 @@ static void default_idle(void)
110{ 110{
111 local_irq_enable(); 111 local_irq_enable();
112 112
113 clear_thread_flag(TIF_POLLING_NRFLAG); 113 current_thread_info()->status &= ~TS_POLLING;
114 smp_mb__after_clear_bit(); 114 smp_mb__after_clear_bit();
115 while (!need_resched()) { 115 while (!need_resched()) {
116 local_irq_disable(); 116 local_irq_disable();
@@ -119,7 +119,7 @@ static void default_idle(void)
119 else 119 else
120 local_irq_enable(); 120 local_irq_enable();
121 } 121 }
122 set_thread_flag(TIF_POLLING_NRFLAG); 122 current_thread_info()->status |= TS_POLLING;
123} 123}
124 124
125/* 125/*
@@ -202,8 +202,7 @@ static inline void play_dead(void)
202 */ 202 */
203void cpu_idle (void) 203void cpu_idle (void)
204{ 204{
205 set_thread_flag(TIF_POLLING_NRFLAG); 205 current_thread_info()->status |= TS_POLLING;
206
207 /* endless idle loop with no priority at all */ 206 /* endless idle loop with no priority at all */
208 while (1) { 207 while (1) {
209 while (!need_resched()) { 208 while (!need_resched()) {