Re: [patch/rft 2.6.17-rc5-git 4/6] PM_EVENT_PRETHAW for various graphics cards

David Brownell
2006-06-07T01:24:56Z

On Tuesday 30 May 2006 12:30 pm, Pavel Machek wrote:

> > + if (mesg.event == PM_EVENT_PRETHAW)
> > + mesg.event = PM_EVENT_FREEZE;
> > ...
> > + dev->dev.power.power_state = mesg;
>
> If PRETHAW event is sent, we still store FREEZE into power_state. That
> is not consistent with other drivers.

Doesn't matter. By definition, it's OK for drivers to treat PRETHAW
as FREEZE, when they don't care about that distinction ... plus ISTR
there's no code that _relies_ on that power_state. Few drivers
even bother setting it ... it's not exactly a useful record.

- Dave