From 5e2ceaef264e036dd8d0a8aa7d7c2ea003df1aa2 Mon Sep 17 00:00:00 2001 From: njl Date: Sun, 15 Aug 2004 23:39:37 +0000 Subject: Comment out the ability to enable/disable ACPI at runtime. This appears to not work reliably and crash some systems. It is not supported at all on others. Pending discussion, the underlying ioctls will be removed. --- usr.sbin/acpi/acpiconf/acpiconf.c | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'usr.sbin/acpi/acpiconf') diff --git a/usr.sbin/acpi/acpiconf/acpiconf.c b/usr.sbin/acpi/acpiconf/acpiconf.c index 5781b9e..d9e67e4 100644 --- a/usr.sbin/acpi/acpiconf/acpiconf.c +++ b/usr.sbin/acpi/acpiconf/acpiconf.c @@ -57,6 +57,7 @@ acpi_init() } } +#if 0 static int acpi_enable_disable(int enable) { @@ -69,6 +70,7 @@ acpi_enable_disable(int enable) return (0); } +#endif static int acpi_sleep(int sleep_type) @@ -158,12 +160,14 @@ main(int argc, char *argv[]) case 'i': acpi_battinfo(atoi(optarg)); break; +#if 0 case 'd': acpi_enable_disable(ACPIIO_DISABLE); break; case 'e': acpi_enable_disable(ACPIIO_ENABLE); break; +#endif case 's': if (optarg[0] == 'S') sleep_type = optarg[1] - '0'; -- cgit v1.1