Received: by 2002:a05:6358:700f:b0:131:369:b2a3 with SMTP id 15csp587159rwo; Wed, 2 Aug 2023 00:24:05 -0700 (PDT) X-Google-Smtp-Source: APBJJlHtHiEy+ahVlkOxuTuHrljriB4Hj+s2MK8jnwWv0yRP1akNdny0H+EHr6m4lU0KksIQ2uS9 X-Received: by 2002:a05:6a20:2c98:b0:132:cb65:b47c with SMTP id g24-20020a056a202c9800b00132cb65b47cmr11633219pzj.43.1690961045275; Wed, 02 Aug 2023 00:24:05 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1690961045; cv=none; d=google.com; s=arc-20160816; b=l51+QwE5VXWHoqY9tOT1CPcKfdfpcEeCVZFvlbie9ouH19Qkjyka7OV2P50sp3XxbZ 4ZDgIGlgw9rGE7VqLSO/RvyfE99w31YFtWf4JuDvgolLwGjAim/M2eZAe4Zs6wXp1U3K S3eBUg2gT27RS7Ezz6ClfiNsnBrJdPlMm2xLv49BsSKC2t8qC5FZuO3LEsPnQ02yujP9 BXcg5gycqersrJv7qfzlXwm3zoW44eYIkbuSmYb6DmdHaqQNjkM6OB1/U7kiB3dwD84i 5Xaf120bDu+MucU5w8hJIHmOBEfX68cbQJJBE82ugG0M0DQ3J5cepQI0YmzkGufCdRjD fOPQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:mime-version:message-id:date:subject:cc:to:from; bh=UT/9ffBfwC4j/gfIZvyhsFObZW1cCqrSp8exyshJxSo=; fh=SdSl0NANxOLmmdpDs0YhfcYyoG6UCSYN2Ymd1r7Mw2M=; b=bz4jmClNtIOOhNfVQgxoNq8S75bwMa9JymsspCuQ6V/V7lcDttmrQPz+VkVPf+N2Ph kEn9w7fVJozSqjZkN3RfxXcPLuzhTx2Q64uzd2RRmQyQs24Y5ZZSgDcdrTzIIjSnviG4 vv3+vXljXLi3t7+SI16sV37C26JlEYAFekkJZJOXlrs44Wgd99IBGNcF9JbdCicx4HFO 99VdePJH7C0oQu+XBB7MSsJRIBwTn0fK63zEcntzH9J558EYt20e/w8uL1SlUQ9mbZbE hui1F2Kv3DgvjWCYbfi0h9udxvn5Jv5CwVN8UnP5eii7ChkjdYPrCroL2VLKA5U8457u YpbA== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id l184-20020a6325c1000000b0056401bf428asi9683057pgl.843.2023.08.02.00.23.52; Wed, 02 Aug 2023 00:24:04 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230362AbjHBGnU (ORCPT + 99 others); Wed, 2 Aug 2023 02:43:20 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:37304 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230138AbjHBGnQ (ORCPT ); Wed, 2 Aug 2023 02:43:16 -0400 Received: from ex01.ufhost.com (ex01.ufhost.com [61.152.239.75]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id A579230DD for ; Tue, 1 Aug 2023 23:42:48 -0700 (PDT) Received: from EXMBX165.cuchost.com (unknown [175.102.18.54]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (Client CN "EXMBX165", Issuer "EXMBX165" (not verified)) by ex01.ufhost.com (Postfix) with ESMTP id 4745B24E248; Wed, 2 Aug 2023 14:42:17 +0800 (CST) Received: from EXMBX171.cuchost.com (172.16.6.91) by EXMBX165.cuchost.com (172.16.6.75) with Microsoft SMTP Server (TLS) id 15.0.1497.42; Wed, 2 Aug 2023 14:42:17 +0800 Received: from ubuntu.localdomain (183.27.98.54) by EXMBX171.cuchost.com (172.16.6.91) with Microsoft SMTP Server (TLS) id 15.0.1497.42; Wed, 2 Aug 2023 14:42:16 +0800 From: Minda Chen To: Conor Dooley , Jisheng Zhang , Samuel Holland , Dao Lu , "Heiko Stuebner" , Paul Walmsley , "Palmer Dabbelt" , Albert Ou CC: , , "Minda Chen" Subject: [PATCH v1] riscv: Using TOOLCHAIN_HAS_ZIHINTPAUSE marco replace zihintpause Date: Wed, 2 Aug 2023 14:42:15 +0800 Message-ID: <20230802064215.31111-1-minda.chen@starfivetech.com> X-Mailer: git-send-email 2.17.1 MIME-Version: 1.0 Content-Type: text/plain X-Originating-IP: [183.27.98.54] X-ClientProxiedBy: EXCAS062.cuchost.com (172.16.6.22) To EXMBX171.cuchost.com (172.16.6.91) X-YovoleRuleAgent: yovoleflag X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00, RCVD_IN_DNSWL_BLOCKED,SPF_HELO_NONE,SPF_PASS,T_SCC_BODY_TEXT_LINE autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Actually it is a part of Conor's commit aae538cd03bc ("riscv: fix detection of toolchain Zihintpause support"). It is looks like a merge issue. Samuel's commit 0b1d60d6dd9e ("riscv: Fix build with CONFIG_CC_OPTIMIZE_FOR_SIZE=y") do not base on Conor's commit and revert to __riscv_zihintpause. So this patch can fix it. Signed-off-by: Minda Chen --- arch/riscv/include/asm/vdso/processor.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/arch/riscv/include/asm/vdso/processor.h b/arch/riscv/include/asm/vdso/processor.h index 14f5d27783b8..96b65a5396df 100644 --- a/arch/riscv/include/asm/vdso/processor.h +++ b/arch/riscv/include/asm/vdso/processor.h @@ -14,7 +14,7 @@ static inline void cpu_relax(void) __asm__ __volatile__ ("div %0, %0, zero" : "=r" (dummy)); #endif -#ifdef __riscv_zihintpause +#ifdef CONFIG_TOOLCHAIN_HAS_ZIHINTPAUSE /* * Reduce instruction retirement. * This assumes the PC changes. -- 2.17.1