From nobody Fri Feb 04 12:01:46 2022 X-Original-To: dev-commits-src-all@mlmmj.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mlmmj.nyi.freebsd.org (Postfix) with ESMTP id CC3CE198CADA; Fri, 4 Feb 2022 12:01:47 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from mxrelay.nyi.freebsd.org (mxrelay.nyi.freebsd.org [IPv6:2610:1c1:1:606c::19:3]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256 client-signature RSA-PSS (4096 bits) client-digest SHA256) (Client CN "mxrelay.nyi.freebsd.org", Issuer "R3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4JqvK738pSz4ZRx; Fri, 4 Feb 2022 12:01:47 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1643976107; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=/imPoIJ318RFHc3C7IIj+Gj9s6c0WjuTeGgOcvzUkQc=; b=TS1MvTMHbwPV3t28B/NFtZiTjZ08wZgr4/g0R0nLfXOsRnRjvBcXruidoK3u3/0yTpDBwJ Pc7U3m8wU2HJ+c0GmoGsJ+4jIDoK/pXQpy/DDdPoLX7kT8wfWTP3TWgpJkYIFrxk4aiKfH LnRcp3OYbBGWD+QEvm0vMBAEIsLebCYp2iw1+ZUGnbePkAjob+hIzIhxvLWLg8hbA0Q24I bFSCiLoAkje+hPpBaLcxqiCmuvmv6sRedh5/MoOTipQ3LIelfpgc2KRd8hW+R0F2CJevcl OfNFsYcEfRDAwZlNOf1SP5I0bConKLSy6mb0CrR9UoxV9Q9s6iMVUbhdjKJWAg== Received: from gitrepo.freebsd.org (gitrepo.freebsd.org [IPv6:2610:1c1:1:6068::e6a:5]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (Client did not present a certificate) by mxrelay.nyi.freebsd.org (Postfix) with ESMTPS id DD66931AA; Fri, 4 Feb 2022 12:01:46 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from gitrepo.freebsd.org ([127.0.1.44]) by gitrepo.freebsd.org (8.16.1/8.16.1) with ESMTP id 214C1koW061551; Fri, 4 Feb 2022 12:01:46 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.16.1/8.16.1/Submit) id 214C1km7061550; Fri, 4 Feb 2022 12:01:46 GMT (envelope-from git) Date: Fri, 4 Feb 2022 12:01:46 GMT Message-Id: <202202041201.214C1km7061550@gitrepo.freebsd.org> To: src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-main@FreeBSD.org From: Konstantin Belousov Subject: git: 9596b349bb57 - main - x86 atomic.h: remove obsoleted comment List-Id: Commit messages for all branches of the src repository List-Archive: https://lists.freebsd.org/archives/dev-commits-src-all List-Help: List-Post: List-Subscribe: List-Unsubscribe: Sender: owner-dev-commits-src-all@freebsd.org X-BeenThere: dev-commits-src-all@freebsd.org MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-Git-Committer: kib X-Git-Repository: src X-Git-Refname: refs/heads/main X-Git-Reftype: branch X-Git-Commit: 9596b349bb57e50a2baec8497ced9f712f08f147 Auto-Submitted: auto-generated ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1643976107; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=/imPoIJ318RFHc3C7IIj+Gj9s6c0WjuTeGgOcvzUkQc=; b=dhF2nhlafhZO+pxxGT6W9rJdg86jAaV0mu4jeGKFilT5Q9Wskh15Oml9OZBeSa5/VCDToQ JgYpuhLaLwB/S/o5RkRiFDR3BbKUfi/u4uFJXnu+YPlFFWu8F7kQMYnh58OZLuTfANC8li 4hux9TG6HgUtMAwo9d+KJmy60reThgawLNFTxMwmLzEhRWflpJz0Ii9SKK6/qLb1sozwbF gqP7D6ideMI27tDS2qQd6giXyzUfW4lBbnpMvsq47YvcXI86y2kDFpe83PlfJ6vvIaJcx/ fqlL3/JQms49I0uy05NVyusncAm5ZO1RZp3tRHZxRXazD80Y4wVVlpTSglcb8Q== ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1643976107; a=rsa-sha256; cv=none; b=VrkpSZONKbJMMtn7icz+V93emLXtQvkUNFfeoGOt6I6L18CGLugfXUXr1uo1sgZX+8cPpo fOxhKd480RpIvA9wNDhprVUaf9tIaQcZfOuxcB9ITok2aZFRpkU7cJtp+imXKC8mD0zkCa Dl29cXH/6+Qwl6EJi2eLLePAUK8VkexDFIyksaqBKW8qEgAgKXV0x9ISXz7sEr+3u5RN3u N0fBktPAaJSZsPRP7TfPlGZjBsD765MZnLBYaXL/gOIzAhXjYfZOx7OyrjcqOqXWok9szv JvdaYvR8yCGpO8VMTPnbtGb/DWFZ53iRXrE1pA8H99HpVuI5Z1Ac4p6l/4cTXA== ARC-Authentication-Results: i=1; mx1.freebsd.org; none X-ThisMailContainsUnwantedMimeParts: N The branch main has been updated by kib: URL: https://cgit.FreeBSD.org/src/commit/?id=9596b349bb57e50a2baec8497ced9f712f08f147 commit 9596b349bb57e50a2baec8497ced9f712f08f147 Author: Konstantin Belousov AuthorDate: 2022-02-03 17:46:22 +0000 Commit: Konstantin Belousov 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 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); \