diff options
author | msmith <msmith@FreeBSD.org> | 2001-05-29 20:13:42 +0000 |
---|---|---|
committer | msmith <msmith@FreeBSD.org> | 2001-05-29 20:13:42 +0000 |
commit | 7996f19f432a6f4cf9a62d6121b95f412a9828bb (patch) | |
tree | 3b22869e0df2f024daec841766dd27368c33ca28 /sys/dev/acpica/acpi_button.c | |
parent | cc0ed18a81964224f46b56f81af2bc62de049ae3 (diff) | |
download | FreeBSD-src-7996f19f432a6f4cf9a62d6121b95f412a9828bb.zip FreeBSD-src-7996f19f432a6f4cf9a62d6121b95f412a9828bb.tar.gz |
- Updates for new constant naming in the ACPI CA 20010518 update.
- Use __func__ instead of __FUNCTION.
- Support power-off to S3 or S5 (takawata)
- Enable ACPI debugging earlier (with a sysinit)
- Fix a deadlock in the EC code (takawata)
- Improve arithmetic and reduce the risk of spurious wakeup in
AcpiOsSleep.
- Add AcpiOsGetThreadId.
- Simplify mutex code (still disabled).
Diffstat (limited to 'sys/dev/acpica/acpi_button.c')
-rw-r--r-- | sys/dev/acpica/acpi_button.c | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/sys/dev/acpica/acpi_button.c b/sys/dev/acpica/acpi_button.c index 70cad56..c69d7e0 100644 --- a/sys/dev/acpica/acpi_button.c +++ b/sys/dev/acpica/acpi_button.c @@ -40,7 +40,7 @@ /* * Hooks for the ACPI CA debugging infrastructure */ -#define _COMPONENT SYSTEM_CONTROL +#define _COMPONENT ACPI_BUTTON MODULE_NAME("BUTTON") struct acpi_button_softc { @@ -103,7 +103,7 @@ acpi_button_attach(device_t dev) struct acpi_button_softc *sc; ACPI_STATUS status; - FUNCTION_TRACE(__FUNCTION__); + FUNCTION_TRACE(__func__); sc = device_get_softc(dev); sc->button_dev = dev; @@ -123,7 +123,7 @@ acpi_button_notify_pressed_for_sleep(void *arg) struct acpi_button_softc *sc; struct acpi_softc *acpi_sc; - FUNCTION_TRACE(__FUNCTION__); + FUNCTION_TRACE(__func__); sc = (struct acpi_button_softc *)arg; acpi_sc = acpi_device_get_parent_softc(sc->button_dev); @@ -150,7 +150,7 @@ acpi_button_notify_pressed_for_wakeup(void *arg) struct acpi_button_softc *sc; struct acpi_softc *acpi_sc; - FUNCTION_TRACE(__FUNCTION__); + FUNCTION_TRACE(__func__); sc = (struct acpi_button_softc *)arg; acpi_sc = acpi_device_get_parent_softc(sc->button_dev); @@ -180,7 +180,7 @@ acpi_button_notify_handler(ACPI_HANDLE h, UINT32 notify, void *context) { struct acpi_button_softc *sc = (struct acpi_button_softc *)context; - FUNCTION_TRACE_U32(__FUNCTION__, notify); + FUNCTION_TRACE_U32(__func__, notify); switch (notify) { case ACPI_NOTIFY_BUTTON_PRESSED_FOR_SLEEP: |