Return immediately from apm_suspend() when APM BIOS wasn't initialized.

Pressing Alt-Pause key will cause machine to reboot with apm disabled.

PR:		i386/13817
Submitted by:	yokota
This commit is contained in:
Mitsuru IWASAKI 1999-09-20 15:29:23 +00:00
parent e9a56ad5ca
commit 43834dfd27
2 changed files with 6 additions and 0 deletions

View file

@ -581,6 +581,9 @@ apm_suspend(int state)
{
struct apm_softc *sc = &apm_softc;
if (!sc->initialized)
return;
switch (state) {
case PMST_SUSPEND:
if (sc->suspends)

View file

@ -581,6 +581,9 @@ apm_suspend(int state)
{
struct apm_softc *sc = &apm_softc;
if (!sc->initialized)
return;
switch (state) {
case PMST_SUSPEND:
if (sc->suspends)