Re: A minimally power-aware driver treats all messages as SUSPEND?

From: Rafael J. Wysocki
Date: Tue Jul 01 2008 - 10:16:23 EST


On Tuesday, 1 of July 2008, Uwe Kleine-König wrote:
> Hello,
>
> include/linux/pm.h claims:
>
> A minimally power-aware driver treats all messages as SUSPEND
> [...].
>
> This was introduced in commit 82bb67f2 by David Brownell. At this time
> PM_EVENT_HIBERNATE didn't exist. This was added in 3a2d5b70 by Rafael
> J. Wysocki without updating the above sentence. I think a minimally
> power-aware driver should treat all messages as HIBERNATE, shouldn't it?

No, I don't think so. In the majority of cases, SUSPEND is equivalent to the
combination of FREEZE and HIBERNATE.

Still, this is going to change anyway with the introduction of the new
suspend/hibernation callbacks that are scheduled for 2.6.27.

Thanks,
Rafael
--
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/