Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 88791
b: refs/heads/master
c: 3b22ec7
h: refs/heads/master
i:
  88789: 7f74246
  88787: 9efb037
  88783: 68cf124
v: v3
  • Loading branch information
Glauber de Oliveira Costa authored and Ingo Molnar committed Apr 17, 2008
1 parent 3c1a2a4 commit cb107b2
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 3 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 1d89a7f072d4f76f0538edfb474d527066ee7838
refs/heads/master: 3b22ec7b13cb31e0d87fbc0aabe14caaaad309e8
9 changes: 7 additions & 2 deletions trunk/arch/x86/kernel/process_32.c
Original file line number Diff line number Diff line change
Expand Up @@ -127,6 +127,7 @@ void default_idle(void)
local_irq_enable();
current_thread_info()->status |= TS_POLLING;
} else {
local_irq_enable();
/* loop is done by the caller */
cpu_relax();
}
Expand All @@ -142,6 +143,7 @@ EXPORT_SYMBOL(default_idle);
*/
static void poll_idle(void)
{
local_irq_enable();
cpu_relax();
}

Expand Down Expand Up @@ -248,8 +250,11 @@ void mwait_idle_with_hints(unsigned long ax, unsigned long cx)
__monitor((void *)&current_thread_info()->flags, 0, 0);
smp_mb();
if (!need_resched())
__mwait(ax, cx);
}
__sti_mwait(ax, cx);
else
local_irq_enable();
} else
local_irq_enable();
}

/* Default MONITOR/MWAIT with no hints, used for default C1 state */
Expand Down

0 comments on commit cb107b2

Please sign in to comment.