From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id 65234E7AD77 for ; Tue, 3 Oct 2023 17:22:10 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; h=Sender: Content-Transfer-Encoding:Content-Type:List-Subscribe:List-Help:List-Post: List-Archive:List-Unsubscribe:List-Id:In-Reply-To:From:References:Cc:To: Subject:MIME-Version:Date:Message-ID:Reply-To:Content-ID:Content-Description: Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID: List-Owner; bh=mjLkTtgqMi8V5KsXPiffcs4B87coIaZNNu+kb7QV+yE=; b=nVVi/4YHgm03G9 5WoxDgCKuBhOzd2mmmQlZLq5znql1kYJaJF/9pwJPXV1qKYP1pExXbRSdYh09ew4EpKSGGD86jeU/ hTcjAJNUhuCyrEb9lB/wkNhvtcOJPTrA4w3nRBJ+4oOT2ONLIBxNpu+0xLZcmq1h/qxMi/BsKngBg C9dq+3QHDj2xEpBO6Qm8ECh3fbooPca/vY9J00CiqrHukfD8m1s3lTGsOLuE5TXK7cuFaDGjeEpoy KYeLtSRBc7m3Yp3hIp2Ob6UWT34AEJLH0Bf7UbRAZesFQZCAsTgqqckTdtNv+VAyt+mUbhndQA+HU B+lby+i8t8iI2SsbT+bg==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.96 #2 (Red Hat Linux)) id 1qnj5Z-00F2Py-0H; Tue, 03 Oct 2023 17:21:41 +0000 Received: from foss.arm.com ([217.140.110.172]) by bombadil.infradead.org with esmtp (Exim 4.96 #2 (Red Hat Linux)) id 1qnj5V-00F2OB-0q for linux-arm-kernel@lists.infradead.org; Tue, 03 Oct 2023 17:21:38 +0000 Received: from usa-sjc-imap-foss1.foss.arm.com (unknown [10.121.207.14]) by usa-sjc-mx-foss1.foss.arm.com (Postfix) with ESMTP id 748B5C15; Tue, 3 Oct 2023 10:22:09 -0700 (PDT) Received: from [10.1.30.125] (e126864.cambridge.arm.com [10.1.30.125]) by usa-sjc-imap-foss1.foss.arm.com (Postfix) with ESMTPSA id 2ADE53F762; Tue, 3 Oct 2023 10:21:26 -0700 (PDT) Message-ID: Date: Tue, 3 Oct 2023 18:20:25 +0100 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:102.0) Gecko/20100101 Thunderbird/102.15.1 Subject: Re: [PATCH 37/37] arm64: Remove cpus_have_const_cap() Content-Language: en-US To: Mark Rutland Cc: ardb@kernel.org, bertrand.marquis@arm.com, boris.ostrovsky@oracle.com, broonie@kernel.org, catalin.marinas@arm.com, daniel.lezcano@linaro.org, james.morse@arm.com, jgross@suse.com, maz@kernel.org, oliver.upton@linux.dev, pcc@google.com, sstabellini@kernel.org, suzuki.poulose@arm.com, tglx@linutronix.de, vladimir.murzin@arm.com, will@kernel.org, linux-arm-kernel@lists.infradead.org References: <20230919092850.1940729-1-mark.rutland@arm.com> <20230919092850.1940729-38-mark.rutland@arm.com> From: Kristina Martsenko In-Reply-To: <20230919092850.1940729-38-mark.rutland@arm.com> X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20231003_102137_362944_626D59C0 X-CRM114-Status: GOOD ( 10.63 ) X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org On 19/09/2023 10:28, Mark Rutland wrote: > There are no longer any users of cpus_have_const_cap(), and therefore it > can be removed. > > Remove cpus_have_const_cap(). At the same time, remove > __cpus_have_const_cap(), as this is a trivial wrapper of > alternative_has_cap_unlikely(), which can be used directly instead. Nit: The comment above __system_matches_cap() still mentions cpus_have_const_cap(): /* * This helper function is used in a narrow window when, * - The system wide safe registers are set with all the SMP CPUs and, * - The SYSTEM_FEATURE system_cpucaps may not have been set. * In all other cases cpus_have_{const_}cap() should be used. */ Kristina _______________________________________________ linux-arm-kernel mailing list linux-arm-kernel@lists.infradead.org http://lists.infradead.org/mailman/listinfo/linux-arm-kernel