> The extra include of <sys/time.h> is because apm uses microtime() and my

> <sys/param.h> doesn't include <sys/time.h>
>
> I removed the NAPM check since it's wasteful to check twice.  apmprobe()
> checks the unit number, and that's the right check.

Submitted by:	bde
This commit is contained in:
Nate Williams 1997-01-07 15:36:34 +00:00
parent 273b52cea1
commit 58eb96aa43
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=21401
2 changed files with 4 additions and 22 deletions

View File

@ -14,14 +14,9 @@
*
* Sep, 1994 Implemented on FreeBSD 1.1.5.1R (Toshiba AVS001WD)
*
* $Id: apm.c,v 1.49 1996/09/07 17:41:22 nate Exp $
* $Id: apm.c,v 1.50 1997/01/06 06:01:45 nate Exp $
*/
#include "apm.h"
#if NAPM > 1
#error only one APM device may be configured
#endif
#include <sys/param.h>
#include <sys/conf.h>
#include <sys/kernel.h>
@ -29,11 +24,7 @@
#include <sys/devfsext.h>
#endif /*DEVFS*/
#include <sys/systm.h>
#include <sys/malloc.h>
#include <sys/ioctl.h>
#include <sys/file.h>
#include <sys/proc.h>
#include <sys/vnode.h>
#include <sys/time.h>
#include <i386/isa/isa_device.h>
#include <machine/apm_bios.h>
#include <machine/segments.h>

View File

@ -14,14 +14,9 @@
*
* Sep, 1994 Implemented on FreeBSD 1.1.5.1R (Toshiba AVS001WD)
*
* $Id: apm.c,v 1.49 1996/09/07 17:41:22 nate Exp $
* $Id: apm.c,v 1.50 1997/01/06 06:01:45 nate Exp $
*/
#include "apm.h"
#if NAPM > 1
#error only one APM device may be configured
#endif
#include <sys/param.h>
#include <sys/conf.h>
#include <sys/kernel.h>
@ -29,11 +24,7 @@
#include <sys/devfsext.h>
#endif /*DEVFS*/
#include <sys/systm.h>
#include <sys/malloc.h>
#include <sys/ioctl.h>
#include <sys/file.h>
#include <sys/proc.h>
#include <sys/vnode.h>
#include <sys/time.h>
#include <i386/isa/isa_device.h>
#include <machine/apm_bios.h>
#include <machine/segments.h>