summaryrefslogtreecommitdiffstats
path: root/sys/x86
diff options
context:
space:
mode:
authorattilio <attilio@FreeBSD.org>2012-04-26 20:24:25 +0000
committerattilio <attilio@FreeBSD.org>2012-04-26 20:24:25 +0000
commit0b98e6d835caa6e794deb417e434762d6a00031b (patch)
treeee191eec81bcd147f9a5eb58b8dbd0b99c89a4f8 /sys/x86
parent6eb12b42ba18698f1441188207485bf0d2414382 (diff)
downloadFreeBSD-src-0b98e6d835caa6e794deb417e434762d6a00031b.zip
FreeBSD-src-0b98e6d835caa6e794deb417e434762d6a00031b.tar.gz
Clean up the intr* MD KPI from the SMP dependency, removing a cause of
discrepancy between modules and kernel, but deal with SMP differences within the functions themselves. As an added bonus this also helps in terms of code readability. Requested by: gibbs Reviewed by: jhb, marius MFC after: 1 week
Diffstat (limited to 'sys/x86')
-rw-r--r--sys/x86/x86/intr_machdep.c15
1 files changed, 15 insertions, 0 deletions
diff --git a/sys/x86/x86/intr_machdep.c b/sys/x86/x86/intr_machdep.c
index fef227e..a33f4b5 100644
--- a/sys/x86/x86/intr_machdep.c
+++ b/sys/x86/x86/intr_machdep.c
@@ -565,4 +565,19 @@ intr_next_cpu(void)
return (PCPU_GET(apic_id));
}
+
+/* Return EOPNOTSUPP in the UP case. */
+int
+intr_bind(u_int vector __unused, u_char cpu __unused)
+{
+
+ return (EOPNOTSUPP);
+}
+
+/* Use an empty stub for compatibility. */
+void
+intr_add_cpu(u_int cpu __unused)
+{
+
+}
#endif
OpenPOWER on IntegriCloud