If you say you're disabling S3, then please really do so and flip the bit
in the sleep_states[] array.
> --- clean/drivers/acpi/sleep/main.c 2003-02-15 18:51:17.000000000 +0100
> +++ linux/drivers/acpi/sleep/main.c 2003-02-15 18:57:27.000000000 +0100
> @@ -103,6 +103,10 @@
> return error;
> }
>
> + error = device_suspend(state, SUSPEND_DISABLE);
> + if (error)
> + panic("Sorry, devices really should know how to disable\n");
> +
Why is every error condition a panic()? That certainly does not add
robustness to the code..
Also, you say that the APIC needs this state. I wonder if that should be
done in the SUSPEND_POWER_DOWN stage with interrupts disabled?
-pat
-
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/