Subject: RE: power hook and spl level
To: None <tech-kern@netbsd.org>
From: TAKEMURA Shin <takemura@netbsd.org>
List: tech-kern
Date: 11/27/2000 22:59:57
I've commited the change last night.

And I've updated following device drivers, which use powerhook.

M sys/dev/ic/awi.c
M sys/dev/ic/i82557.c
M sys/dev/ic/rtl81x9.c
M sys/dev/ic/tulip.c
M sys/dev/ieee1394/fwohci.c
M sys/dev/isa/ym.c
M sys/dev/pci/cs4280.c
M sys/dev/usb/uhci.c

If you get problem around these devices with suspend/resume,
please let me know.

Takemura

> -----Original Message-----
> From: tech-kern-owner@netbsd.org 
> [mailto:tech-kern-owner@netbsd.org]On Behalf Of TAKEMURA Shin
> Sent: Friday, November 24, 2000 11:27 AM
> To: tech-kern@netbsd.org
> Cc: Lennart Augustsson
> Subject: RE: power hook and spl level
> 
> My apologies for taking so long to respond, but I've made the patch
> (attached). If no one is aginst me, I'm going to commit it next sunday.
> I will change some device drivers which use power hook appropriately.
> 
> Takemura
> > >         dopowerhooks(PWR_SOFTSUSPEND);
> > >         apm_spl = splhigh();
> > >         dopowerhooks(PWR_SUSPEND);
> > >         /* suspned... */
> > >         dopowerhooks(PWR_RESUME);
> > >         splx(apm_spl);
> > >
> > >         dopowerhooks(PWR_SOFTRESUME);