Signed-off-by: Cyrill Gorcunov --- Index: linux-2.6.git/arch/x86/kernel/process.c ==================================================================== --- linux-2.6.git.orig/arch/x86/kernel/process.c 2008-06-28 21:15:44.000000000 +0400 +++ linux-2.6.git/arch/x86/kernel/process.c 2008-07-05 12:34:02.000000000 +0400 @@ -325,6 +325,9 @@ void __cpuinit select_idle_routine(const static int __init idle_setup(char *str) { + if (!str) + return -EINVAL; + if (!strcmp(str, "poll")) { printk("using polling idle threads.\n"); pm_idle = poll_idle; -- -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/