View | Details | Raw Unified | Return to bug 230290
Collapse All | Expand All

(-)b/sys/dev/acpica/acpi.c (-2 / +4 lines)
Lines 3699-3706 acpiioctl(struct cdev *dev, u_long cmd, caddr_t addr, int flag, struct thread *t Link Here
3699
    switch (cmd) {
3699
    switch (cmd) {
3700
    case ACPIIO_REQSLPSTATE:
3700
    case ACPIIO_REQSLPSTATE:
3701
	state = *(int *)addr;
3701
	state = *(int *)addr;
3702
	if (state != ACPI_STATE_S5)
3702
	if (state != ACPI_STATE_S5) {
3703
	    return (acpi_ReqSleepState(sc, state));
3703
		EVENTHANDLER_INVOKE(acpi_sleep_event, state);
3704
		return 0;
3705
	}
3704
	device_printf(sc->acpi_dev, "power off via acpi ioctl not supported\n");
3706
	device_printf(sc->acpi_dev, "power off via acpi ioctl not supported\n");
3705
	error = EOPNOTSUPP;
3707
	error = EOPNOTSUPP;
3706
	break;
3708
	break;

Return to bug 230290