Re: Use global system_state to avoid system-state confusion

From: Alan Cox
Date: Thu Aug 19 2004 - 07:15:17 EST


On Iau, 2004-08-19 at 12:36, Pavel Machek wrote:
> Hi!
>
> I started using system_state (already defined in kernel.h) to allow
> drivers to do something different in response to swsusp. This at least
> kills ide-disk.c hack.
>
> Please apply,
>
> - printk("Shutdown: %s\n", drive->name);
> dev->bus->suspend(dev, PM_SUSPEND_STANDBY);
> }

Please leave the printk - its very handy for debugging IDE exit paths,
and those are not entirely bug free yet.
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/