aboutsummaryrefslogtreecommitdiff
path: root/sys/dev/acpica
diff options
context:
space:
mode:
authorAndrew Turner <andrew@FreeBSD.org>2015-05-11 14:36:34 +0000
committerAndrew Turner <andrew@FreeBSD.org>2015-05-11 14:36:34 +0000
commit044a49cd246cba27c59907b43f7d0f52a6266e40 (patch)
treeb907d21dd68be180ed113cab2e7fe8a0cd0b2e12 /sys/dev/acpica
parent72a638c7f4a217e4f60da8d64175021ba8bc6eb6 (diff)
downloadsrc-044a49cd246cba27c59907b43f7d0f52a6266e40.tar.gz
src-044a49cd246cba27c59907b43f7d0f52a6266e40.zip
Hide code only used on i386 and amd64.
Notes
Notes: svn path=/head/; revision=282771
Diffstat (limited to 'sys/dev/acpica')
-rw-r--r--sys/dev/acpica/acpi_cpu.c7
1 files changed, 6 insertions, 1 deletions
diff --git a/sys/dev/acpica/acpi_cpu.c b/sys/dev/acpica/acpi_cpu.c
index a24ba4ea5dab..ac6f19168933 100644
--- a/sys/dev/acpica/acpi_cpu.c
+++ b/sys/dev/acpica/acpi_cpu.c
@@ -746,6 +746,7 @@ acpi_cpu_generic_cx_probe(struct acpi_cpu_softc *sc)
}
}
+#if defined(__i386__) || defined(__amd64__)
static void
acpi_cpu_cx_cst_mwait(struct acpi_cx *cx_ptr, uint64_t address, int accsize)
{
@@ -755,6 +756,7 @@ acpi_cpu_cx_cst_mwait(struct acpi_cx *cx_ptr, uint64_t address, int accsize)
cx_ptr->mwait_hw_coord = (accsize & CST_FFH_MWAIT_HW_COORD) != 0;
cx_ptr->mwait_bm_avoidance = (accsize & CST_FFH_MWAIT_BM_AVOID) != 0;
}
+#endif
static void
acpi_cpu_cx_cst_free_plvlx(device_t cpu_dev, struct acpi_cx *cx_ptr)
@@ -781,8 +783,11 @@ acpi_cpu_cx_cst(struct acpi_cpu_softc *sc)
ACPI_OBJECT *top;
ACPI_OBJECT *pkg;
uint32_t count;
+ int i;
+#if defined(__i386__) || defined(__amd64__)
uint64_t address;
- int i, vendor, class, accsize;
+ int vendor, class, accsize;
+#endif
ACPI_FUNCTION_TRACE((char *)(uintptr_t)__func__);