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:
iwasaki 1999-09-20 15:29:23 +00:00
parent 9bc938e5c5
commit f56081fa70
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)