Re: [RFC][PATCH] Fix drivers/acpi/sleep.c compile error if swsusp is disabled

Pavel Machek (pavel@ucw.cz)
Thu, 14 Nov 2002 23:59:23 +0100


Hi!

> Hi, this should fix this compile problem (if this is correct).
>
> Please apply.

It would silently do nothing, that's bad.

Could you make it so that CONFIG_ACPI_SLEEP is not selectable without
CONFIG_SOFTWARE_SUSPEND and move CONFIG_SOFTWARE_SUSPEND into "power
managment" submenu?
Pavel
> break;
>
> case ACPI_STATE_S2:
> +#ifdef CONFIG_SOFTWARE_SUSPEND
> case ACPI_STATE_S3:
> do_suspend_lowlevel(0);
> +#endif
> break;
> }
> local_irq_restore(flags);
>
>

-- 
When do you have heart between your knees?
-
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/