diff options
Diffstat (limited to 'arch/x86_64/kernel/process.c')
| -rw-r--r-- | arch/x86_64/kernel/process.c | 12 |
1 files changed, 7 insertions, 5 deletions
diff --git a/arch/x86_64/kernel/process.c b/arch/x86_64/kernel/process.c index d8d5ccc245c8..4f21765078b7 100644 --- a/arch/x86_64/kernel/process.c +++ b/arch/x86_64/kernel/process.c | |||
| @@ -288,16 +288,18 @@ void __cpuinit select_idle_routine(const struct cpuinfo_x86 *c) | |||
| 288 | 288 | ||
| 289 | static int __init idle_setup (char *str) | 289 | static int __init idle_setup (char *str) |
| 290 | { | 290 | { |
| 291 | if (!strncmp(str, "poll", 4)) { | 291 | if (!strcmp(str, "poll")) { |
| 292 | printk("using polling idle threads.\n"); | 292 | printk("using polling idle threads.\n"); |
| 293 | pm_idle = poll_idle; | 293 | pm_idle = poll_idle; |
| 294 | } | 294 | } else if (!strcmp(str, "mwait")) |
| 295 | force_mwait = 1; | ||
| 296 | else | ||
| 297 | return -1; | ||
| 295 | 298 | ||
| 296 | boot_option_idle_override = 1; | 299 | boot_option_idle_override = 1; |
| 297 | return 1; | 300 | return 0; |
| 298 | } | 301 | } |
| 299 | 302 | early_param("idle", idle_setup); | |
| 300 | __setup("idle=", idle_setup); | ||
| 301 | 303 | ||
| 302 | /* Prints also some state that isn't saved in the pt_regs */ | 304 | /* Prints also some state that isn't saved in the pt_regs */ |
| 303 | void __show_regs(struct pt_regs * regs) | 305 | void __show_regs(struct pt_regs * regs) |
