aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorKonstantin Belousov <kib@FreeBSD.org>2022-02-03 17:46:22 +0000
committerKonstantin Belousov <kib@FreeBSD.org>2022-02-04 12:01:39 +0000
commit9596b349bb57e50a2baec8497ced9f712f08f147 (patch)
treec4cb587cd86e6665130fa51364d1d42a068f087d
parent9c0b759bf9b520537616d026f21a0a98d70acd11 (diff)
downloadsrc-9596b349bb57e50a2baec8497ced9f712f08f147.tar.gz
src-9596b349bb57e50a2baec8497ced9f712f08f147.zip
x86 atomic.h: remove obsoleted comment
Modules no longer call kernel functions for atomic ops, and since the previous commit, we always use lock prefix. Submitted by: Elliott Mitchell <ehem+freebsd@m5p.com> Reviewed by: jhb, markj MFC after: 1 week Differential revision: https://reviews.freebsd.org/D34153
-rw-r--r--sys/amd64/include/atomic.h8
-rw-r--r--sys/i386/include/atomic.h8
2 files changed, 0 insertions, 16 deletions
diff --git a/sys/amd64/include/atomic.h b/sys/amd64/include/atomic.h
index f0191970e8cc..d61fb359e261 100644
--- a/sys/amd64/include/atomic.h
+++ b/sys/amd64/include/atomic.h
@@ -102,14 +102,6 @@
* atomic_readandclear_long(P) (return (*(u_long *)(P)); *(u_long *)(P) = 0;)
*/
-/*
- * The above functions are expanded inline in the statically-linked
- * kernel. Lock prefixes are generated if an SMP kernel is being
- * built.
- *
- * Kernel modules call real functions which are built into the kernel.
- * This allows kernel modules to be portable between UP and SMP systems.
- */
#if !defined(__GNUCLIKE_ASM)
#define ATOMIC_ASM(NAME, TYPE, OP, CONS, V) \
void atomic_##NAME##_##TYPE(volatile u_##TYPE *p, u_##TYPE v); \
diff --git a/sys/i386/include/atomic.h b/sys/i386/include/atomic.h
index 2e72de935c23..154144a470c6 100644
--- a/sys/i386/include/atomic.h
+++ b/sys/i386/include/atomic.h
@@ -96,14 +96,6 @@ __mbu(void)
* atomic_readandclear_long(P) (return (*(u_long *)(P)); *(u_long *)(P) = 0;)
*/
-/*
- * The above functions are expanded inline in the statically-linked
- * kernel. Lock prefixes are generated if an SMP kernel is being
- * built.
- *
- * Kernel modules call real functions which are built into the kernel.
- * This allows kernel modules to be portable between UP and SMP systems.
- */
#if !defined(__GNUCLIKE_ASM)
#define ATOMIC_ASM(NAME, TYPE, OP, CONS, V) \
void atomic_##NAME##_##TYPE(volatile u_##TYPE *p, u_##TYPE v); \