From owner-freebsd-current@freebsd.org Sun Jun 24 17:50:44 2018 Return-Path: Delivered-To: freebsd-current@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id F292A1006AE6 for ; Sun, 24 Jun 2018 17:50:43 +0000 (UTC) (envelope-from mmacy@freebsd.org) Received: from smtp.freebsd.org (smtp.freebsd.org [IPv6:2610:1c1:1:606c::24b:4]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client CN "smtp.freebsd.org", Issuer "Let's Encrypt Authority X3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id A35A270E76; Sun, 24 Jun 2018 17:50:43 +0000 (UTC) (envelope-from mmacy@freebsd.org) Received: from mail-it0-f41.google.com (mail-it0-f41.google.com [209.85.214.41]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (Client CN "smtp.gmail.com", Issuer "Google Internet Authority G2" (verified OK)) (Authenticated sender: mmacy) by smtp.freebsd.org (Postfix) with ESMTPSA id 6B24623CE9; Sun, 24 Jun 2018 17:50:43 +0000 (UTC) (envelope-from mmacy@freebsd.org) Received: by mail-it0-f41.google.com with SMTP id p185-v6so9193005itp.4; Sun, 24 Jun 2018 10:50:43 -0700 (PDT) X-Gm-Message-State: APt69E2V0s0cALPJUzPsJizpiXQQ0C79+0h/DpND5ubqUQ/zTcneMc6p LONuCyr6+0/j1y1YUjjmQzEvneu/9yrzBWJjqXc= X-Google-Smtp-Source: ADUXVKLe/gOBwCXdgg13KU4i2dBZ5hHPthdMmD3OA7as/62RSqGwaK/dx5WaglYqiabMbb5vjV8H7Pyl1JpWDHMrbOA= X-Received: by 2002:a02:4c9b:: with SMTP id q27-v6mr2329680jad.38.1529862642996; Sun, 24 Jun 2018 10:50:42 -0700 (PDT) MIME-Version: 1.0 References: <20180624084214.GW2430@kib.kiev.ua> In-Reply-To: <20180624084214.GW2430@kib.kiev.ua> From: Matthew Macy Date: Sun, 24 Jun 2018 10:50:32 -0700 X-Gmail-Original-Message-ID: Message-ID: Subject: Re: atomic_testandclear_, atomic_testandset_ To: Konstantin Belousov Cc: Adrian Chadd , John Baldwin , "br@freebsd.org" , freebsd-current , marius@freebsd.org Content-Type: text/plain; charset="UTF-8" X-Content-Filtered-By: Mailman/MimeDel 2.1.26 X-BeenThere: freebsd-current@freebsd.org X-Mailman-Version: 2.1.26 Precedence: list List-Id: Discussions about the use of FreeBSD-current List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 24 Jun 2018 17:50:44 -0000 On Sun, Jun 24, 2018 at 01:42 Konstantin Belousov wrote: > On Sat, Jun 23, 2018 at 01:38:07PM -0700, Matthew Macy wrote: > > It turns out ck already has equivalent primitives. Pardon the noise. > Why not to add trivial cmpset-based implementations to the lacking > arches ? If maintainers prefer proper ll/cs assembly, they would > have the time to do it properly without ultimatum. Good point. > > > It is useful to utilize consistent atomic(9) KPI across kernel. > Agreed > > > > > -M > > > > On Sat, Jun 23, 2018 at 12:18 Matthew Macy wrote: > > > > > The functions in the subject are both documented in atomic(9) and are > > > implemented by every arch except sparc64 and MIPS. I have some code in > > > review that uses them that I intend to commit once the various design > > > issues are addressed. Please implement them so that those targets can > > > remain part of universe. > > > > > > Thanks in advance. > > > -M > > > > > _______________________________________________ > > freebsd-current@freebsd.org mailing list > > https://lists.freebsd.org/mailman/listinfo/freebsd-current > > To unsubscribe, send any mail to " > freebsd-current-unsubscribe@freebsd.org" >