summaryrefslogtreecommitdiffstats
path: root/sys/x86
diff options
context:
space:
mode:
authorkib <kib@FreeBSD.org>2015-07-16 12:16:42 +0000
committerkib <kib@FreeBSD.org>2015-07-16 12:16:42 +0000
commit19eb9e306a7f18001135e72c978615479a7a7680 (patch)
treeed3d5eae1f904d3c83bc2543d11ba6c9abad3a59 /sys/x86
parent1c2c3036b4445d2b9686c9fab33333be6e069954 (diff)
downloadFreeBSD-src-19eb9e306a7f18001135e72c978615479a7a7680.zip
FreeBSD-src-19eb9e306a7f18001135e72c978615479a7a7680.tar.gz
Fix warnings about unused functions for UP build.
Sponsored by: The FreeBSD Foundation
Diffstat (limited to 'sys/x86')
-rw-r--r--sys/x86/x86/local_apic.c10
1 files changed, 7 insertions, 3 deletions
diff --git a/sys/x86/x86/local_apic.c b/sys/x86/x86/local_apic.c
index d75a452..cf2114d 100644
--- a/sys/x86/x86/local_apic.c
+++ b/sys/x86/x86/local_apic.c
@@ -204,6 +204,7 @@ lapic_write32_nofence(enum LAPIC_REGISTERS reg, uint32_t val)
}
}
+#ifdef SMP
static uint64_t
lapic_read_icr(void)
{
@@ -241,6 +242,7 @@ lapic_write_icr(uint32_t vhi, uint32_t vlo)
lapic_write32(LAPIC_ICR_LO, vlo);
}
}
+#endif /* SMP */
static void
native_lapic_enable_x2apic(void)
@@ -292,9 +294,6 @@ static int native_lapic_enable_pmc(void);
static void native_lapic_disable_pmc(void);
static void native_lapic_reenable_pmc(void);
static void native_lapic_enable_cmc(void);
-static void native_lapic_ipi_raw(register_t icrlo, u_int dest);
-static void native_lapic_ipi_vectored(u_int vector, int dest);
-static int native_lapic_ipi_wait(int delay);
static int native_lapic_set_lvt_mask(u_int apic_id, u_int lvt,
u_char masked);
static int native_lapic_set_lvt_mode(u_int apic_id, u_int lvt,
@@ -303,8 +302,13 @@ static int native_lapic_set_lvt_polarity(u_int apic_id, u_int lvt,
enum intr_polarity pol);
static int native_lapic_set_lvt_triggermode(u_int apic_id, u_int lvt,
enum intr_trigger trigger);
+#ifdef SMP
+static void native_lapic_ipi_raw(register_t icrlo, u_int dest);
+static void native_lapic_ipi_vectored(u_int vector, int dest);
+static int native_lapic_ipi_wait(int delay);
static int native_lapic_ipi_alloc(inthand_t *ipifunc);
static void native_lapic_ipi_free(int vector);
+#endif /* SMP */
struct apic_ops apic_ops = {
.create = native_lapic_create,
OpenPOWER on IntegriCloud