diff options
Diffstat (limited to 'arch/x86/kernel')
-rw-r--r-- | arch/x86/kernel/process.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/arch/x86/kernel/process.c b/arch/x86/kernel/process.c index ba370dc8685b..58325a6604a4 100644 --- a/arch/x86/kernel/process.c +++ b/arch/x86/kernel/process.c | |||
@@ -164,6 +164,9 @@ void __cpuinit select_idle_routine(const struct cpuinfo_x86 *c) | |||
164 | 164 | ||
165 | static int __init idle_setup(char *str) | 165 | static int __init idle_setup(char *str) |
166 | { | 166 | { |
167 | if (!str) | ||
168 | return -EINVAL; | ||
169 | |||
167 | if (!strcmp(str, "poll")) { | 170 | if (!strcmp(str, "poll")) { |
168 | printk("using polling idle threads.\n"); | 171 | printk("using polling idle threads.\n"); |
169 | pm_idle = poll_idle; | 172 | pm_idle = poll_idle; |