Perform APM power-off on power-off request, not halt request.

This commit is contained in:
Mike Smith 1998-12-10 23:36:14 +00:00
parent f8a882d809
commit 8f9e83e526
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=41664
2 changed files with 6 additions and 6 deletions

View File

@ -15,7 +15,7 @@
*
* Sep, 1994 Implemented on FreeBSD 1.1.5.1R (Toshiba AVS001WD)
*
* $Id: apm.c,v 1.75 1998/10/30 05:41:13 msmith Exp $
* $Id: apm.c,v 1.76 1998/12/04 21:28:39 archie Exp $
*/
#include "opt_devfs.h"
@ -251,8 +251,8 @@ apm_power_off(int howto, void *junk)
{
u_long eax, ebx, ecx, edx;
/* Not halting, or not active */
if (!(howto & RB_HALT) || !apm_softc.active)
/* Not halting powering off, or not active */
if (!(howto & RB_POWEROFF) || !apm_softc.active)
return;
eax = (APM_BIOS << 8) | APM_SETPWSTATE;
ebx = PMDV_ALLDEV;

View File

@ -15,7 +15,7 @@
*
* Sep, 1994 Implemented on FreeBSD 1.1.5.1R (Toshiba AVS001WD)
*
* $Id: apm.c,v 1.75 1998/10/30 05:41:13 msmith Exp $
* $Id: apm.c,v 1.76 1998/12/04 21:28:39 archie Exp $
*/
#include "opt_devfs.h"
@ -251,8 +251,8 @@ apm_power_off(int howto, void *junk)
{
u_long eax, ebx, ecx, edx;
/* Not halting, or not active */
if (!(howto & RB_HALT) || !apm_softc.active)
/* Not halting powering off, or not active */
if (!(howto & RB_POWEROFF) || !apm_softc.active)
return;
eax = (APM_BIOS << 8) | APM_SETPWSTATE;
ebx = PMDV_ALLDEV;