From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mail-wr1-f45.google.com (mail-wr1-f45.google.com [209.85.221.45]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id BF7E4132111 for ; Wed, 21 Aug 2024 14:32:48 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.221.45 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1724250770; cv=none; b=tuaqYm+pkBdPJUeEDG+4HginQPVxpod9lnii0qiAnT+skaGoQdYXevf5dcn0jTyijoEIuH8C+VlA9QdnLas+GgPMQDZlG3RCN1LoIGUGuxu9KEKmBXlcTIWPuiHEcu01Ic/hnzMWC+iZExiAU4YnGWTB3PeN6Dc9bDWK6CgXyeY= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1724250770; c=relaxed/simple; bh=adHmya+qZ0f7dKCPtfUCV+Zzi7NsBk9BKZjxCyAllf8=; h=Date:From:To:Cc:Subject:Message-ID:References:MIME-Version: Content-Type:Content-Disposition:In-Reply-To; b=jZO81744SHrJAOngwU4hSv4PTCOJdJ+P+lDxKcnsAf52RqqYA0iOl6SKOvxTIJUfbJb6FMXUPBL8summ4eai0lBYPGuObV3FjSGeo71IblNVGjp2tokxan7yxzSw0SKLxYsh0LocXfB8stFb92BFpGNLlYVN8Ne1sbXk+fo8S+A= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=none (p=none dis=none) header.from=ventanamicro.com; spf=pass smtp.mailfrom=ventanamicro.com; dkim=pass (2048-bit key) header.d=ventanamicro.com header.i=@ventanamicro.com header.b=FB2+wOS3; arc=none smtp.client-ip=209.85.221.45 Authentication-Results: smtp.subspace.kernel.org; dmarc=none (p=none dis=none) header.from=ventanamicro.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=ventanamicro.com Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=ventanamicro.com header.i=@ventanamicro.com header.b="FB2+wOS3" Received: by mail-wr1-f45.google.com with SMTP id ffacd0b85a97d-367990aaef3so4255084f8f.0 for ; Wed, 21 Aug 2024 07:32:48 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=ventanamicro.com; s=google; t=1724250767; x=1724855567; darn=vger.kernel.org; h=in-reply-to:content-disposition:mime-version:references:message-id :subject:cc:to:from:date:from:to:cc:subject:date:message-id:reply-to; bh=BzH0Ti5/cSa4VdiVvC7Ftff2LpcTCcyPmlVuI+QhSpA=; b=FB2+wOS3bCVVLxvwT2kJfqtsdBPNbl6cuA0Dfb2aNHqlr5lBUbJbddIZhjQhofeHUW kO1ARGbAv6ak6P71WcoEiWMPfSoff6ZBu3bqPW36URNflxae/osgax6kuFqh+lkwI6zl lERzKdrR63PWzRCBwWarFSX8BRQ1YFRvMU717xaHBmiuqGfO3SsU9fRt14tjTiHxqFP2 o9dg3kbGmeZiTpQtp6uSKvtqRlsz1Zh1hrQOF7LCsKYT8P53JyJuIrUFtFqEwhy5QC79 C4qxj3UMjSonngsIAI5gJt3o4f3PxcwmwFDp3+YJoU87/wjvbj5vbLXm93CjndgWu8Mk XLqg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1724250767; x=1724855567; h=in-reply-to:content-disposition:mime-version:references:message-id :subject:cc:to:from:date:x-gm-message-state:from:to:cc:subject:date :message-id:reply-to; bh=BzH0Ti5/cSa4VdiVvC7Ftff2LpcTCcyPmlVuI+QhSpA=; b=KOJQv7Nl7TzpKf2a71uNC9/z6aFNqO/VLCXIFtpevmWospNMDQXK/RLZhNMdeUfMO4 I9j8PS9KDMn3LaJKIP1olj6ID4hnsyFzMXeLf3Wl5Mg6f8GUCOCg40HWYKsY8X6ZFPy1 gpfMv/eI+xoP348qBYjsl4tkspNcwwk4iZ7iCdkIbIURQDwF2Bc9e0iaCg9b5v6sKN5X mfa5vhO8o8x4ojQ+LaRUd+H7P2/wN2Hq8p9alxjejiqmg0lcW2+1wF2TKYEZnT8aQ/+V DmvWVjgSdheelLGrjy+x6zBgYdD4OT4IG8YP1MplNHe7PzNdNryQBGgQqYi6qQ9yl/Tc CUtw== X-Forwarded-Encrypted: i=1; AJvYcCUhe5H67y8hHrzhR6KsimJ+egYnqz8liG04JvDbLmNL7gRFlHjMYae/IxtZRgSY4rjmfxGiBxPusJRT@vger.kernel.org X-Gm-Message-State: AOJu0Yxj6BfMO20xtfBvrEKf/zarvsVFJN8TGT4Xoq/M+20cmSabcQXM KrrIOPkK1FZSb9ZzX1s4rvNQ5EE0d8Eqjfn/mPJOhOR4ni9alcg7N3VWQF++cPY= X-Google-Smtp-Source: AGHT+IG9h6I3OGfk/BYjIhaBWJg+eWFf3tj96tXLfu1MoIVwYfpY3HO/tLKYhUHQR2BfZETfuvcMOA== X-Received: by 2002:a5d:5184:0:b0:368:65ad:529 with SMTP id ffacd0b85a97d-372fd5929f0mr1701638f8f.17.1724250766402; Wed, 21 Aug 2024 07:32:46 -0700 (PDT) Received: from localhost (cst2-173-13.cust.vodafone.cz. [31.30.173.13]) by smtp.gmail.com with ESMTPSA id 5b1f17b1804b1-42abefcb674sm27234295e9.32.2024.08.21.07.32.45 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 21 Aug 2024 07:32:46 -0700 (PDT) Date: Wed, 21 Aug 2024 16:32:45 +0200 From: Andrew Jones To: Alexandre Ghiti Cc: Jonathan Corbet , Paul Walmsley , Palmer Dabbelt , Albert Ou , Conor Dooley , Rob Herring , Krzysztof Kozlowski , Andrea Parri , Nathan Chancellor , Peter Zijlstra , Ingo Molnar , Will Deacon , Waiman Long , Boqun Feng , Arnd Bergmann , Leonardo Bras , Guo Ren , linux-doc@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, linux-riscv@lists.infradead.org, linux-arch@vger.kernel.org, Guo Ren Subject: Re: [PATCH v5 10/13] asm-generic: ticket-lock: Add separate ticket-lock.h Message-ID: <20240821-8dc1f3151679f2e35255683b@orel> References: <20240818063538.6651-1-alexghiti@rivosinc.com> <20240818063538.6651-11-alexghiti@rivosinc.com> Precedence: bulk X-Mailing-List: linux-arch@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20240818063538.6651-11-alexghiti@rivosinc.com> On Sun, Aug 18, 2024 at 08:35:35AM GMT, Alexandre Ghiti wrote: > From: Guo Ren > > Add a separate ticket-lock.h to include multiple spinlock versions and > select one at compile time or runtime. > > Reviewed-by: Leonardo Bras > Suggested-by: Arnd Bergmann > Link: https://lore.kernel.org/linux-riscv/CAK8P3a2rnz9mQqhN6-e0CGUUv9rntRELFdxt_weiD7FxH7fkfQ@mail.gmail.com/ > Signed-off-by: Guo Ren > Signed-off-by: Guo Ren > Acked-by: Peter Zijlstra (Intel) > --- > include/asm-generic/spinlock.h | 87 +--------------------- > include/asm-generic/ticket_spinlock.h | 103 ++++++++++++++++++++++++++ > 2 files changed, 104 insertions(+), 86 deletions(-) > create mode 100644 include/asm-generic/ticket_spinlock.h > Reviewed-by: Andrew Jones