Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 304990
b: refs/heads/master
c: 19209bb
h: refs/heads/master
v: v3
  • Loading branch information
Srivatsa S. Bhat authored and Ingo Molnar committed May 7, 2012
1 parent de9739d commit 2c0de18
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 1 deletion.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 489a71b029cd94e3b0132795146e8be3a87bf3fa
refs/heads/master: 19209bbb8612004bc20a1f70ff12926f99fe2643
8 changes: 8 additions & 0 deletions trunk/arch/x86/kernel/process.c
Original file line number Diff line number Diff line change
Expand Up @@ -594,9 +594,17 @@ int mwait_usable(const struct cpuinfo_x86 *c)
{
u32 eax, ebx, ecx, edx;

/* Use mwait if idle=mwait boot option is given */
if (boot_option_idle_override == IDLE_FORCE_MWAIT)
return 1;

/*
* Any idle= boot option other than idle=mwait means that we must not
* use mwait. Eg: idle=halt or idle=poll or idle=nomwait
*/
if (boot_option_idle_override != IDLE_NO_OVERRIDE)
return 0;

if (c->cpuid_level < MWAIT_INFO)
return 0;

Expand Down

0 comments on commit 2c0de18

Please sign in to comment.