git: 9596b349bb57 - main - x86 atomic.h: remove obsoleted comment
- Go to: [ bottom of page ] [ top of archives ] [ this month ]
Date: Fri, 04 Feb 2022 12:01:46 UTC
The branch main has been updated by kib: URL: https://cgit.FreeBSD.org/src/commit/?id=9596b349bb57e50a2baec8497ced9f712f08f147 commit 9596b349bb57e50a2baec8497ced9f712f08f147 Author: Konstantin Belousov <kib@FreeBSD.org> AuthorDate: 2022-02-03 17:46:22 +0000 Commit: Konstantin Belousov <kib@FreeBSD.org> CommitDate: 2022-02-04 12:01:39 +0000 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 --- sys/amd64/include/atomic.h | 8 -------- sys/i386/include/atomic.h | 8 -------- 2 files changed, 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); \