From 9596b349bb57e50a2baec8497ced9f712f08f147 Mon Sep 17 00:00:00 2001 From: Konstantin Belousov Date: Thu, 3 Feb 2022 19:46:22 +0200 Subject: [PATCH] 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 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 f0191970e8c..d61fb359e26 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 2e72de935c2..154144a470c 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); \