aboutsummaryrefslogtreecommitdiff
path: root/sys/sys/smp.h
diff options
context:
space:
mode:
authorMatthew Dillon <dillon@FreeBSD.org>2000-03-28 18:06:49 +0000
committerMatthew Dillon <dillon@FreeBSD.org>2000-03-28 18:06:49 +0000
commitdb6a42615881d284f8622182d8e9145f040056b5 (patch)
tree8630fc05f4bf872a26289299a59114adfec3c373 /sys/sys/smp.h
parent7791c9212c4c2a9f0a26209abf1864025e84360a (diff)
downloadsrc-db6a42615881d284f8622182d8e9145f040056b5.tar.gz
src-db6a42615881d284f8622182d8e9145f040056b5.zip
The SMP cleanup commit broke UP compiles. Make UP compiles work again.
Notes
Notes: svn path=/head/; revision=58755
Diffstat (limited to 'sys/sys/smp.h')
-rw-r--r--sys/sys/smp.h19
1 files changed, 18 insertions, 1 deletions
diff --git a/sys/sys/smp.h b/sys/sys/smp.h
index c2340aef71d0..c11bcb28806f 100644
--- a/sys/sys/smp.h
+++ b/sys/sys/smp.h
@@ -183,6 +183,23 @@ extern int smp_started;
extern volatile int smp_idle_loops;
#endif /* !LOCORE */
-#endif /* SMP || APIC_IO */
+#else /* !SMP && !APIC_IO */
+
+/*
+ * Create dummy MP lock empties
+ */
+
+static __inline void
+get_mplock(void)
+{
+}
+
+static __inline void
+rel_mplock(void)
+{
+}
+
+#endif
+
#endif /* _KERNEL */
#endif /* _MACHINE_SMP_H_ */