Received: by 2002:ab2:6203:0:b0:1f5:f2ab:c469 with SMTP id o3csp2363507lqt; Mon, 22 Apr 2024 08:43:47 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCWPjktlHa+JSJGRUNioT9XVfKZZwYFlFiCRZWjYeH/au1Ges6P0AgEzRr4ZNPgd8R/urA3gSPeiPGq7pR63/zyT4pZOhumqA9JAOTV91g== X-Google-Smtp-Source: AGHT+IHXEcRWTab6FZIYuXp+UrwMwnfnJ2JvU965uYhFXA16OjMPaXzCdfvHjF8jIs4m8pdoDrHy X-Received: by 2002:a05:6a20:7347:b0:1ac:3d3c:c1e7 with SMTP id v7-20020a056a20734700b001ac3d3cc1e7mr57280pzc.12.1713800626838; Mon, 22 Apr 2024 08:43:46 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1713800626; cv=pass; d=google.com; s=arc-20160816; b=sut0G+XW01IwtyKSWbauiB2MqN9R0l3mbRptm17NQlCrmZ124S7taUvBIFcil+VOIR B926R/4GoPgWgdmmphktVk0ETEQ2Z+VuZqzhy9rJyHXLMifMjVrCtrZ5bl2BKWzUJZU6 TbvisU8md5ibsChqeU9tyjSZzfll1q2IIYuynMdfaJNuecxmkKFffhEoZT8FhiFxUlEq lY56YpZee/d6JkYL01c7QZKH9ELDFfEJSFf3Pz6pDR2eZJ/cVosKiicwfiiFnWGeVq8e TihDffbRvu5emz8FPjDgc4hJRqkc1wC/wQRZ8ZvllE+0188SiDdcJ64Fmft2AgUiejwg KL3Q== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:message-id:date:subject:cc:to :from:dkim-signature; bh=XoZ7uxBwOV+P0LIe5TJy7U0wCKeVYjyqLxxE3vM9H8g=; fh=7DBBwGfEHudcESU9JeAHVZZ0fOY8cv2+65STlu2gKO0=; b=KwpvhIZZRgder5hC+ATRg9NkbdNQSDNTTrgtzw74sZ+g+899mEAaGdW3JGZN5umxly /7QGSW8ucySSCs/82P0YO+cni2ifLSjlkS6asahD41VjhscNFkfh+mOeDChhMkJC1ubQ s7fyAztAM1YmyLsoXkKRm8RXazy7vY2AZtIRh+zghA7VP3eztJ3agltjnhqa3RRaAAUr izS4n2J8q8SEFbPKQ8PHt7y8TpmJ3tiEyKLO2WNN8qU3qfBXWJcGKU8ShcsSKCm/0Tcp /VmjobNRFdJME8pT463g0mAJo/Dt5YhuPX5JPhOqKqEDK42szK1oXodduMCQ1qqgaOyV FZMg==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@gmail.com header.s=20230601 header.b=c7b5Y6P6; arc=pass (i=1 spf=pass spfdomain=gmail.com dkim=pass dkdomain=gmail.com dmarc=pass fromdomain=gmail.com); spf=pass (google.com: domain of linux-kernel+bounces-153619-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-153619-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from sv.mirrors.kernel.org (sv.mirrors.kernel.org. [2604:1380:45e3:2400::1]) by mx.google.com with ESMTPS id k12-20020a63d10c000000b00602a85927c1si281187pgg.539.2024.04.22.08.43.46 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 22 Apr 2024 08:43:46 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-153619-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) client-ip=2604:1380:45e3:2400::1; Authentication-Results: mx.google.com; dkim=pass header.i=@gmail.com header.s=20230601 header.b=c7b5Y6P6; arc=pass (i=1 spf=pass spfdomain=gmail.com dkim=pass dkdomain=gmail.com dmarc=pass fromdomain=gmail.com); spf=pass (google.com: domain of linux-kernel+bounces-153619-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-153619-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: from smtp.subspace.kernel.org (wormhole.subspace.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by sv.mirrors.kernel.org (Postfix) with ESMTPS id 2A865289979 for ; Mon, 22 Apr 2024 15:18:17 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 37904152DFA; Mon, 22 Apr 2024 15:18:07 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=gmail.com header.i=@gmail.com header.b="c7b5Y6P6" Received: from mail-ej1-f42.google.com (mail-ej1-f42.google.com [209.85.218.42]) (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 D2EBB152E00 for ; Mon, 22 Apr 2024 15:18:04 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.218.42 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1713799086; cv=none; b=izOcTG8MBaXw3utHQMOX5iyjxZ6tkP55UbuRB/GJ0rsMHc5crfzqazzAVhi6UQNsKGUe+g2N7S/seHfOMiXxBXqp/sRsHMuGHHEE+RJy2sph1mrFk8u0scUYH6hRo18jVOAUOXq328IU6Gp5Dhbmw4ovTTh5d3mI2ByQ4NYQDjk= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1713799086; c=relaxed/simple; bh=CPFR15tneOJhQk78oq0la/KY9saekh5nLt/B0kR7pgs=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version; b=D8Uw49HOsGfHdrHXTW42vmNAjkLnMXfuzsaxu3LNQEdLOmDJlBiFSFZNqLqVQAA8sX0ytBArzo9YzQMlnHqsFZ29PoyLwz/hV1R1P0CZf1emifyX2JHZYhIByS9zjgObNtIA5doWGWAxcGIOxWSqc/vD1hdfYoPqPyGzYItGlj8= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=gmail.com; spf=pass smtp.mailfrom=gmail.com; dkim=pass (2048-bit key) header.d=gmail.com header.i=@gmail.com header.b=c7b5Y6P6; arc=none smtp.client-ip=209.85.218.42 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=gmail.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=gmail.com Received: by mail-ej1-f42.google.com with SMTP id a640c23a62f3a-a52223e004dso427041366b.2 for ; Mon, 22 Apr 2024 08:18:04 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1713799083; x=1714403883; darn=vger.kernel.org; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:from:to:cc:subject:date:message-id:reply-to; bh=XoZ7uxBwOV+P0LIe5TJy7U0wCKeVYjyqLxxE3vM9H8g=; b=c7b5Y6P6zq5PuzgwzVmE1ishKOfsVMMBWufFDtl8X8VL3g6WKxZfZC6rGm3rso9eom KGY3iMbZCveQdJVouL5bCZC81T3rHntmDxLhQ7bcm5wwwBqAETaGm8tZYm6R1kIDg/qe UwdpcBAx9NXeAjfz6ZGk51zibagJs6FlHcthc+X2t93nF7mhwNx0jT8WLaV9p1r9LalK HXM+On7vzGc1QEkaKfxokY1o5GcgC2e5KZ7iyG50VdVYspVr5a+XLETD5KPs1BcAZBJJ KEhL6/JtJ51oul+rhLKf2f/LyCLv3HM2VZ8M01wFN3BVePKzeWvipDyDHPSQ7Lll+AdS PsRg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1713799083; x=1714403883; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:x-gm-message-state:from:to:cc:subject:date:message-id :reply-to; bh=XoZ7uxBwOV+P0LIe5TJy7U0wCKeVYjyqLxxE3vM9H8g=; b=UdCOs5Pkw3gGIOEI6ENACQvF0OwAQT4mBmkXzh6N6XyglY+2/PHG0oqEHoIrMGLo0c USoe8LlNdEbQBWfFTSW3oG/nJjRtVHYmPAu/0tRbw7FHE0k97g1fOEj8d2jbbVIOMwmt XWoCtPSKKcYzvPdubl/QnqodDNSlJ101ihSP/Yw7xb6n2fTWd2i1Whj88HwkFkJGNzWS zuS8QK42UQ7ezAFu2jB92okq2/LlPaO9Iywf2geq7CZPDPg2v0WH9Z6oSDcW0xxmKjhX 2X7LB/JEKXzEyf5p96OGoghFzW0NQ7WODLUUcfF2aAf2kpXz6w+ezCeiePRp7Q1B2HMs sGWw== X-Forwarded-Encrypted: i=1; AJvYcCXLrHSw4CU1Ys/kuvyBPxtHcMsIVNJqZ9+DO1z3R0gccdQUgMTUSdnglYhUxxdjh5RlH7aQ1Q5sqGIOLWR32qD8Sx8vl/tau7oASyBa X-Gm-Message-State: AOJu0Yz1WAZSGbnbPqgf7XQfCyPeJmZtmc+Nt7Acmdng5neQ1srgJ7QX WyyZhjbCtARcVB8gKOre+QOEvH1KZglbj+Np7pTfsv2mg6IGFItw X-Received: by 2002:a17:907:8691:b0:a56:ee1:5695 with SMTP id qa17-20020a170907869100b00a560ee15695mr1967638ejc.19.1713799082877; Mon, 22 Apr 2024 08:18:02 -0700 (PDT) Received: from localhost.localdomain ([46.248.82.114]) by smtp.gmail.com with ESMTPSA id u14-20020a170906b10e00b00a5534758ef7sm5932108ejy.148.2024.04.22.08.18.01 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 22 Apr 2024 08:18:02 -0700 (PDT) From: Uros Bizjak To: x86@kernel.org, linux-kernel@vger.kernel.org Cc: Uros Bizjak , Peter Zijlstra , Ingo Molnar , Will Deacon , Waiman Long , Boqun Feng Subject: [PATCH] locking/pvqspinlock/x86: Use _Q_LOCKED_VAL in PV_UNLOCK_ASM macro Date: Mon, 22 Apr 2024 17:17:35 +0200 Message-ID: <20240422151752.53997-1-ubizjak@gmail.com> X-Mailer: git-send-email 2.42.0 Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Use _Q_LOCKED_VAL instead of hardcoded $0x1 in PV_UNLOCK_ASM macro. No functional changes intended. Signed-off-by: Uros Bizjak Cc: Peter Zijlstra Cc: Ingo Molnar Cc: Will Deacon Cc: Waiman Long Cc: Boqun Feng --- arch/x86/include/asm/qspinlock_paravirt.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/arch/x86/include/asm/qspinlock_paravirt.h b/arch/x86/include/asm/qspinlock_paravirt.h index 466af57b8ed6..0a985784be9b 100644 --- a/arch/x86/include/asm/qspinlock_paravirt.h +++ b/arch/x86/include/asm/qspinlock_paravirt.h @@ -40,7 +40,7 @@ __PV_CALLEE_SAVE_REGS_THUNK(__pv_queued_spin_unlock_slowpath, ".spinlock.text"); #define PV_UNLOCK_ASM \ FRAME_BEGIN \ "push %rdx\n\t" \ - "mov $0x1,%eax\n\t" \ + "mov $" __stringify(_Q_LOCKED_VAL) ",%eax\n\t" \ "xor %edx,%edx\n\t" \ LOCK_PREFIX "cmpxchg %dl,(%rdi)\n\t" \ "jne .slowpath\n\t" \ -- 2.42.0