diff options
Diffstat (limited to 'arch')
-rw-r--r-- | arch/ia64/kernel/process.c | 2 | ||||
-rw-r--r-- | arch/x86/kernel/process.c | 11 |
2 files changed, 13 insertions, 0 deletions
diff --git a/arch/ia64/kernel/process.c b/arch/ia64/kernel/process.c index 612b3c4a0603..3ab8373103ec 100644 --- a/arch/ia64/kernel/process.c +++ b/arch/ia64/kernel/process.c | |||
@@ -57,6 +57,8 @@ unsigned long boot_option_idle_override = 0; | |||
57 | EXPORT_SYMBOL(boot_option_idle_override); | 57 | EXPORT_SYMBOL(boot_option_idle_override); |
58 | unsigned long idle_halt; | 58 | unsigned long idle_halt; |
59 | EXPORT_SYMBOL(idle_halt); | 59 | EXPORT_SYMBOL(idle_halt); |
60 | unsigned long idle_nomwait; | ||
61 | EXPORT_SYMBOL(idle_nomwait); | ||
60 | 62 | ||
61 | void | 63 | void |
62 | ia64_do_show_stack (struct unw_frame_info *info, void *arg) | 64 | ia64_do_show_stack (struct unw_frame_info *info, void *arg) |
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 | ||