|
@@ -164,6 +164,9 @@ void __cpuinit select_idle_routine(const struct cpuinfo_x86 *c)
|
|
|
|
|
|
static int __init idle_setup(char *str)
|
|
static int __init idle_setup(char *str)
|
|
{
|
|
{
|
|
|
|
+ if (!str)
|
|
|
|
+ return -EINVAL;
|
|
|
|
+
|
|
if (!strcmp(str, "poll")) {
|
|
if (!strcmp(str, "poll")) {
|
|
printk("using polling idle threads.\n");
|
|
printk("using polling idle threads.\n");
|
|
pm_idle = poll_idle;
|
|
pm_idle = poll_idle;
|