summaryrefslogtreecommitdiff
path: root/sys
diff options
context:
space:
mode:
authorJonathan Gray <jsg@cvs.openbsd.org>2022-02-17 00:11:22 +0000
committerJonathan Gray <jsg@cvs.openbsd.org>2022-02-17 00:11:22 +0000
commite8e5b1cf5b2de4455aa2337e9a7bd14af3c0ec43 (patch)
tree93c8da4bc84614224b1a3d68729099749776d3e3 /sys
parentb78f936f01826d199b8c9bebee52b045a8979af8 (diff)
reduce includes
ok deraadt@
Diffstat (limited to 'sys')
-rw-r--r--sys/dev/acpi/acpi_x86.c38
1 files changed, 2 insertions, 36 deletions
diff --git a/sys/dev/acpi/acpi_x86.c b/sys/dev/acpi/acpi_x86.c
index 5d9e41e9f27..bb1c278bf21 100644
--- a/sys/dev/acpi/acpi_x86.c
+++ b/sys/dev/acpi/acpi_x86.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: acpi_x86.c,v 1.10 2022/02/16 20:20:36 deraadt Exp $ */
+/* $OpenBSD: acpi_x86.c,v 1.11 2022/02/17 00:11:21 jsg Exp $ */
/*
* Copyright (c) 2005 Thorsten Lockert <tholo@sigmasoft.com>
* Copyright (c) 2005 Jordan Hargrave <jordan@openbsd.org>
@@ -18,53 +18,19 @@
#include <sys/param.h>
#include <sys/systm.h>
-#include <sys/buf.h>
#include <sys/device.h>
-#include <sys/malloc.h>
-#include <sys/pool.h>
-#include <sys/fcntl.h>
-#include <sys/ioccom.h>
-#include <sys/event.h>
-#include <sys/signalvar.h>
-#include <sys/proc.h>
-#include <sys/kthread.h>
-#include <sys/sched.h>
-#include <sys/reboot.h>
-#include <sys/sysctl.h>
-#include <sys/mount.h>
-#include <sys/syscallargs.h>
-#include <sys/sensors.h>
-#include <sys/timetc.h>
-
-#ifdef HIBERNATE
-#include <sys/hibernate.h>
-#endif
-
-#include <machine/conf.h>
-#include <machine/cpufunc.h>
-#include <machine/bus.h>
-
-#include <dev/pci/pcivar.h>
+
#include <dev/acpi/acpireg.h>
#include <dev/acpi/acpivar.h>
-#include <dev/acpi/amltypes.h>
#include <dev/acpi/acpidev.h>
#include <dev/acpi/dsdt.h>
-#include <dev/pci/pcidevs.h>
-#include <dev/pci/ppbreg.h>
-
-#include <dev/pci/pciidevar.h>
-
#include <machine/apmvar.h>
#define APMUNIT(dev) (minor(dev)&0xf0)
#define APMDEV(dev) (minor(dev)&0x0f)
#define APMDEV_NORMAL 0
#define APMDEV_CTL 8
-#include "wd.h"
-#include "softraid.h"
-
int
sleep_showstate(void *v, int sleepmode)
{