freebsd-skq/sys/dev/acpica
cperciva 8e136c4370 Disable suspend when we're shutting down. This solves the "tell FreeBSD
to shut down; close laptop lid" scenario which otherwise tended to end
with a laptop overheating or the battery dying.

The implementation uses a new sysctl, kern.suspend_blocked; init(8) sets
this while rc.suspend runs, and the ACPI sleep code ignores requests while
the sysctl is set.

Discussed on:	freebsd-acpi (35 emails)
MFC after:	1 week
2015-10-01 10:52:26 +00:00
..
Osd
acpi_acad.c
acpi_battery.c
acpi_button.c
acpi_cmbat.c
acpi_cpu.c
acpi_dock.c
acpi_ec.c
acpi_hpet.c
acpi_hpet.h
acpi_if.m
acpi_isab.c
acpi_lid.c
acpi_package.c
acpi_pci_link.c
acpi_pci.c
acpi_pcib_acpi.c
acpi_pcib_pci.c
acpi_pcib.c
acpi_pcibvar.h
acpi_perf.c
acpi_powerres.c
acpi_quirk.c
acpi_quirks
acpi_resource.c
acpi_smbat.c
acpi_smbus.h
acpi_thermal.c
acpi_throttle.c
acpi_timer.c
acpi_video.c
acpi.c
acpiio.h
acpivar.h