Perform APM power-off on power-off request, not halt request.
This commit is contained in:
parent
f8a882d809
commit
8f9e83e526
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=41664
@ -15,7 +15,7 @@
|
|||||||
*
|
*
|
||||||
* Sep, 1994 Implemented on FreeBSD 1.1.5.1R (Toshiba AVS001WD)
|
* 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"
|
#include "opt_devfs.h"
|
||||||
@ -251,8 +251,8 @@ apm_power_off(int howto, void *junk)
|
|||||||
{
|
{
|
||||||
u_long eax, ebx, ecx, edx;
|
u_long eax, ebx, ecx, edx;
|
||||||
|
|
||||||
/* Not halting, or not active */
|
/* Not halting powering off, or not active */
|
||||||
if (!(howto & RB_HALT) || !apm_softc.active)
|
if (!(howto & RB_POWEROFF) || !apm_softc.active)
|
||||||
return;
|
return;
|
||||||
eax = (APM_BIOS << 8) | APM_SETPWSTATE;
|
eax = (APM_BIOS << 8) | APM_SETPWSTATE;
|
||||||
ebx = PMDV_ALLDEV;
|
ebx = PMDV_ALLDEV;
|
||||||
|
@ -15,7 +15,7 @@
|
|||||||
*
|
*
|
||||||
* Sep, 1994 Implemented on FreeBSD 1.1.5.1R (Toshiba AVS001WD)
|
* 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"
|
#include "opt_devfs.h"
|
||||||
@ -251,8 +251,8 @@ apm_power_off(int howto, void *junk)
|
|||||||
{
|
{
|
||||||
u_long eax, ebx, ecx, edx;
|
u_long eax, ebx, ecx, edx;
|
||||||
|
|
||||||
/* Not halting, or not active */
|
/* Not halting powering off, or not active */
|
||||||
if (!(howto & RB_HALT) || !apm_softc.active)
|
if (!(howto & RB_POWEROFF) || !apm_softc.active)
|
||||||
return;
|
return;
|
||||||
eax = (APM_BIOS << 8) | APM_SETPWSTATE;
|
eax = (APM_BIOS << 8) | APM_SETPWSTATE;
|
||||||
ebx = PMDV_ALLDEV;
|
ebx = PMDV_ALLDEV;
|
||||||
|
Loading…
Reference in New Issue
Block a user