diff options
Diffstat (limited to 'arch/x86/kernel/process.c')
-rw-r--r-- | arch/x86/kernel/process.c | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/arch/x86/kernel/process.c b/arch/x86/kernel/process.c index 7fc729498760..4d629c62f4f8 100644 --- a/arch/x86/kernel/process.c +++ b/arch/x86/kernel/process.c | |||
@@ -11,6 +11,8 @@ | |||
11 | 11 | ||
12 | unsigned long idle_halt; | 12 | unsigned long idle_halt; |
13 | EXPORT_SYMBOL(idle_halt); | 13 | EXPORT_SYMBOL(idle_halt); |
14 | unsigned long idle_nomwait; | ||
15 | EXPORT_SYMBOL(idle_nomwait); | ||
14 | 16 | ||
15 | struct kmem_cache *task_xstate_cachep; | 17 | struct kmem_cache *task_xstate_cachep; |
16 | 18 | ||
@@ -340,6 +342,15 @@ static int __init idle_setup(char *str) | |||
340 | pm_idle = default_idle; | 342 | pm_idle = default_idle; |
341 | idle_halt = 1; | 343 | idle_halt = 1; |
342 | return 0; | 344 | return 0; |
345 | } else if (!strcmp(str, "nomwait")) { | ||
346 | /* | ||
347 | * If the boot option of "idle=nomwait" is added, | ||
348 | * it means that mwait will be disabled for CPU C2/C3 | ||
349 | * states. In such case it won't touch the variable | ||
350 | * of boot_option_idle_override. | ||
351 | */ | ||
352 | idle_nomwait = 1; | ||
353 | return 0; | ||
343 | } else | 354 | } else |
344 | return -1; | 355 | return -1; |
345 | 356 | ||