diff options
author | jhb <jhb@FreeBSD.org> | 2001-01-23 21:52:34 +0000 |
---|---|---|
committer | jhb <jhb@FreeBSD.org> | 2001-01-23 21:52:34 +0000 |
commit | 3ab09403efaaeecdfb7c588880b170f1092aff79 (patch) | |
tree | dda37fb00c11d7edd1736d5dbbfedaba285df35a /sys/dev | |
parent | 82bd6820a6a13f53cc0af38b6cdc5c306128dfe5 (diff) | |
download | FreeBSD-src-3ab09403efaaeecdfb7c588880b170f1092aff79.zip FreeBSD-src-3ab09403efaaeecdfb7c588880b170f1092aff79.tar.gz |
- Mark an unused function with __unused.
- Temporarily #if 0 some unused local variables.
Diffstat (limited to 'sys/dev')
-rw-r--r-- | sys/dev/acpica/acpi_processor.c | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/sys/dev/acpica/acpi_processor.c b/sys/dev/acpica/acpi_processor.c index cdd13ef..14e7d52 100644 --- a/sys/dev/acpica/acpi_processor.c +++ b/sys/dev/acpica/acpi_processor.c @@ -271,7 +271,7 @@ static void acpi_pr_FindLapic(device_t dev, ACPI_HANDLE handle, PROCESSOR_APIC static ACPI_STATUS acpi_pr_CalculatePowerStates(struct acpi_pr_softc *sc); static ACPI_STATUS acpi_pr_CalculatePerformanceStates(struct acpi_pr_softc *sc); static ACPI_STATUS acpi_pr_CalculateThrottlingStates(struct acpi_pr_softc *sc); -static void acpi_pr_IdleHandler(void *arg, int count); +static void acpi_pr_IdleHandler(void *arg, int count) __unused; static ACPI_STATUS acpi_pr_PolicyInitialize(struct acpi_pr_softc *sc); static device_method_t acpi_pr_methods[] = { @@ -385,12 +385,17 @@ acpi_pr_attach(device_t dev) static void acpi_pr_FindLapic(device_t dev, ACPI_HANDLE handle, PROCESSOR_APIC *lapic) { +#if 0 /* broken by new ACPICA code that doesn't support the APIC table */ ACPI_BUFFER buf; ACPI_STATUS status; APIC_HEADER *hdr; APIC_TABLE *tbl; PROCESSOR_APIC *pap; int len, cpuno; +#else + ACPI_STATUS status; + int cpuno; +#endif /* * Assume that we're not going to suceed in finding/parsing the APIC table. |