mirror of
https://git.FreeBSD.org/src.git
synced 2024-12-14 10:09:48 +00:00
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
This commit is contained in:
parent
9c0b759bf9
commit
9596b349bb
@ -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); \
|
||||
|
@ -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); \
|
||||
|
Loading…
Reference in New Issue
Block a user