Received: by 2002:a05:6a10:9848:0:0:0:0 with SMTP id x8csp2620333pxf; Sat, 27 Mar 2021 18:53:03 -0700 (PDT) X-Google-Smtp-Source: ABdhPJxjjGGa1DfZjVXaaphcrq50BNyqyYdOl/8+dJN4EJpEr788sDhy/tz+EaxIiYGKODYr1/Wy X-Received: by 2002:a17:906:ac6:: with SMTP id z6mr21973745ejf.505.1616896382968; Sat, 27 Mar 2021 18:53:02 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1616896382; cv=none; d=google.com; s=arc-20160816; b=hGlsuzjTL/v3HsrmZjJDGtAHzR0sar9WGPX/p2FQxr2vN9X5uqw3IISaf6vAd3FCa5 rAaXngTrbvcoZUjifS19BDv14erq1qkoaC5Zy5E2LJH3kKSmGlX1zfh4OeYmeAXMbR6f npCpA8Ckw1JaxOvPHFEadAxo8nf33J6OXKvZ9jVa0xe2I4LQ+NVuK5JyYLdEXSWBQJIm NHuzxHyOU5SXDyJvs6abBc/Au2e1QVAEzq1eB7Z0Hp5vDAJXjsTOuiHz9uI/F0onLVU2 68bAO1DCJpKHcswEbiOFKiwu78+NuAljb/5EFv8BrjHIy6/lBIkCh/ibVzqCuWLhnpLf GOwg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:cc:to:subject:message-id:date:from:in-reply-to :references:mime-version:dkim-signature; bh=BnI6mLeL939Js+5y8X5Nv0xTh8mVGnSj1iYkJLE4ymE=; b=hbyipAQRBU2qvBlExzWlhAity7ZhP1CewRkWMthDhwgkgPdQRq1IQw8RH1+69LzGyq szOHNhgYRUolfwsIUMH1a874abgdi+Wts4xDY/PKS0fiY9MkWJ9hEO42x/M0TNaJwrkB CXefmn00b0tWQtdrFzaAoK/2iuvdR4bLuYNUKpQfzTJwipLOu11GhE+rCsxpJeMc+6Gt ELgi93jF0zabhp/jCRbnwhDwlP8SKGNrvoGVCl+Zq7HlCkbbgM7mzu8B/ior4ExOkPId /t2heFOmCZCsC9pQPSA882wG0bMa/BS1fxmdvY8cKxrJGR5y7DH5nF36f5l9bg0cBIX7 UFow== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=mXgn7fkg; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id e1si9058385edr.103.2021.03.27.18.52.39; Sat, 27 Mar 2021 18:53:02 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=mXgn7fkg; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231177AbhC1BvT (ORCPT + 99 others); Sat, 27 Mar 2021 21:51:19 -0400 Received: from mail.kernel.org ([198.145.29.99]:53830 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231182AbhC1BvD (ORCPT ); Sat, 27 Mar 2021 21:51:03 -0400 Received: by mail.kernel.org (Postfix) with ESMTPSA id 69E726199F; Sun, 28 Mar 2021 01:51:02 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1616896262; bh=BUNgSqvKCD1KhF3NeU2ADrUH6ViHHRa1+b6YkOC3oZE=; h=References:In-Reply-To:From:Date:Subject:To:Cc:From; b=mXgn7fkgHaKx1wyAyVt+m5lJNJR0MzrE5OrAMbPfJPMq5Pg60W+BTvSMElW0NSsuT KUK5vc0PysUqrztNBlXk6YoPv2cxfSDSDF5Ufxb6AVbMaWxS17bHEvmkWBoHyK1kac gS2SHu2OPT8GqCphEMfoQ7tJOmDkwoXtyK69fIphdEPGJUbJs6dVRo/7S3vdRta+8A xh0qvvCfqrw/lkax7EDQVn9h8cfDK5xudZJNNpjdPAkleyXyFbkvo9W2zeAMEWVJI8 6LsAs+m19cTaes6i1gyj8TAPGFYeO9YA3y/xrFdG11F9Vn0cakibZaJAN79m+0UPQB obgkouu9nS3Kg== Received: by mail-lj1-f169.google.com with SMTP id 184so11821979ljf.9; Sat, 27 Mar 2021 18:51:02 -0700 (PDT) X-Gm-Message-State: AOAM532uYaG+Abh2Aj5/tC51vyEKY8CfS5JY/IAGDQFsPvzKM75CQKca Tm0Y5VUdKLCG0wCn7TR++77/tdRZeb6RCZ1Ijyk= X-Received: by 2002:a2e:2c0d:: with SMTP id s13mr13299541ljs.105.1616896260724; Sat, 27 Mar 2021 18:51:00 -0700 (PDT) MIME-Version: 1.0 References: <1616868399-82848-1-git-send-email-guoren@kernel.org> <1616868399-82848-3-git-send-email-guoren@kernel.org> In-Reply-To: From: Guo Ren Date: Sun, 28 Mar 2021 09:50:49 +0800 X-Gmail-Original-Message-ID: Message-ID: Subject: Re: [PATCH v4 2/4] riscv: cmpxchg.h: Merge macros To: Arnd Bergmann Cc: linux-riscv , Linux Kernel Mailing List , linux-csky@vger.kernel.org, linux-arch , Guo Ren , Peter Zijlstra , Michael Clark , Anup Patel , Palmer Dabbelt Content-Type: text/plain; charset="UTF-8" Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Thx Arnd, On Sun, Mar 28, 2021 at 5:25 AM Arnd Bergmann wrote: > > On Sat, Mar 27, 2021 at 7:06 PM wrote: > > > > From: Guo Ren > > > > To reduce assembly codes, let's merge duplicate codes into one > > (xchg_acquire, xchg_release, cmpxchg_release). > > > > Signed-off-by: Guo Ren > > This is a nice cleanup, but I wonder if you can go even further by using > the definitions from atomic-arch-fallback.h like arm64 and x86 do. Ok, I'll separate it from the qspinlock patchset and try atomic-arch-fallback.h. -- Best Regards Guo Ren ML: https://lore.kernel.org/linux-csky/