summaryrefslogtreecommitdiffstats
path: root/sys/dev/acpica/acpi_processor.c
diff options
context:
space:
mode:
authormsmith <msmith@FreeBSD.org>2001-05-29 20:13:42 +0000
committermsmith <msmith@FreeBSD.org>2001-05-29 20:13:42 +0000
commit7996f19f432a6f4cf9a62d6121b95f412a9828bb (patch)
tree3b22869e0df2f024daec841766dd27368c33ca28 /sys/dev/acpica/acpi_processor.c
parentcc0ed18a81964224f46b56f81af2bc62de049ae3 (diff)
downloadFreeBSD-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_processor.c')
-rw-r--r--sys/dev/acpica/acpi_processor.c16
1 files changed, 8 insertions, 8 deletions
diff --git a/sys/dev/acpica/acpi_processor.c b/sys/dev/acpica/acpi_processor.c
index 14e7d52..1898602 100644
--- a/sys/dev/acpica/acpi_processor.c
+++ b/sys/dev/acpica/acpi_processor.c
@@ -157,7 +157,7 @@
/*
* Hooks for the ACPI CA debugging infrastructure
*/
-#define _COMPONENT PROCESSOR_CONTROL
+#define _COMPONENT ACPI_PROCESSOR_CONTROL
MODULE_NAME("PROCESSOR")
#define PR_MAX_POWER_STATES 4
@@ -303,7 +303,7 @@ acpi_pr_identify(driver_t *driver, device_t bus)
{
ACPI_HANDLE handle;
- FUNCTION_TRACE(__FUNCTION__);
+ FUNCTION_TRACE(__func__);
if (!acpi_disabled("processor") &&
(AcpiGetHandle(ACPI_ROOT_OBJECT, "\\_PR_", &handle) == AE_OK))
@@ -322,7 +322,7 @@ acpi_pr_identify_cpu(ACPI_HANDLE handle, UINT32 level, void *context, void **sta
device_t child;
PROCESSOR_APIC lapic;
- FUNCTION_TRACE(__FUNCTION__);
+ FUNCTION_TRACE(__func__);
acpi_pr_FindLapic(bus, handle, &lapic);
@@ -352,7 +352,7 @@ acpi_pr_attach(device_t dev)
{
struct acpi_pr_softc *sc;
- FUNCTION_TRACE(__FUNCTION__);
+ FUNCTION_TRACE(__func__);
sc = device_get_softc(dev);
sc->pr_dev = dev;
@@ -466,7 +466,7 @@ acpi_pr_CalculatePowerStates(struct acpi_pr_softc *sc)
u_int32_t StateCount = 0;
u_int32_t i = 0;
- FUNCTION_TRACE(__FUNCTION__);
+ FUNCTION_TRACE(__func__);
/*
* Set Latency Defaults:
@@ -516,7 +516,7 @@ acpi_pr_CalculatePerformanceStates(struct acpi_pr_softc *sc)
{
ACPI_STATUS Status = AE_OK;
- FUNCTION_TRACE(__FUNCTION__);
+ FUNCTION_TRACE(__func__);
/* TODO... */
@@ -532,7 +532,7 @@ acpi_pr_CalculateThrottlingStates(struct acpi_pr_softc *sc)
u_int32_t StateCount = 0;
u_int32_t i = 0;
- FUNCTION_TRACE(__FUNCTION__);
+ FUNCTION_TRACE(__func__);
/*
* Get Throttling States:
@@ -568,7 +568,7 @@ acpi_pr_PolicyInitialize(struct acpi_pr_softc *sc)
{
ACPI_STATUS Status;
- FUNCTION_TRACE(__FUNCTION__);
+ FUNCTION_TRACE(__func__);
if ((Status = AcpiSetProcessorSleepState(sc->pr_handle, sc->pr_PowerStates.ActiveState)) != AE_OK) {
device_printf(sc->pr_dev, "could not set Active sleep state - %s\n", acpi_strerror(Status));
OpenPOWER on IntegriCloud