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.
This commit is contained in:
Nate Lawson 2004-08-15 23:39:37 +00:00
parent 1ff2328528
commit c5fe547333
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=133788

View File

@ -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';