Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-17.5 required=3.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,HEADER_FROM_DIFFERENT_DOMAINS,INCLUDES_CR_TRAILER, INCLUDES_PATCH,MAILING_LIST_MULTI,SPF_HELO_NONE,SPF_PASS,URIBL_BLOCKED, USER_AGENT_GIT autolearn=ham autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id 2D036C4320A for ; Tue, 24 Aug 2021 13:52:04 +0000 (UTC) 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 mail.kernel.org (Postfix) with ESMTPS id ED058610CD for ; Tue, 24 Aug 2021 13:52:03 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.4.1 mail.kernel.org ED058610CD Authentication-Results: mail.kernel.org; dmarc=fail (p=none dis=none) header.from=arm.com Authentication-Results: mail.kernel.org; spf=none smtp.mailfrom=lists.infradead.org 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:MIME-Version:List-Subscribe:List-Help: List-Post:List-Archive:List-Unsubscribe:List-Id:References:In-Reply-To: Message-Id:Date:Subject:Cc:To:From:Reply-To:Content-ID:Content-Description: Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID: List-Owner; bh=523SmlDhE1R3rJoPeajDATH98jZew5O5UDvwWYgko6I=; b=E/BQLVIUZljS61 ZL84d0078TIMVXq5md54CZ38OarINikiUeYLUvjs1ltR5KgK8NZ4nmkUzVEFCgMeRwkIdbb/Nise+ kvFXGXisRSBZt1RuXrxTdhJWNdcnKITFug5efUtevO47DMaeZLq0hpWxSnhrCCPspeHcly+62gHsL 7ZjMmYVYljtYhcu4Sw04F0Hq8DYxrGURkwVqa2CZqtYGRyUet34KqqprFcpt7tNnS77RcFWGtTL77 +RsU9kSzR3EFDiZm2+++r00j4RG+IcL9isEbw6/qq1Ftqp8ZNQGZ8TJiuw1NHHlbadwZgRoR6HCzc IWvdjFGPwxeAoLiPapdw==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.94.2 #2 (Red Hat Linux)) id 1mIWo6-003Iig-Di; Tue, 24 Aug 2021 13:49:38 +0000 Received: from foss.arm.com ([217.140.110.172]) by bombadil.infradead.org with esmtp (Exim 4.94.2 #2 (Red Hat Linux)) id 1mIWnq-003Ie1-C9 for linux-arm-kernel@lists.infradead.org; Tue, 24 Aug 2021 13:49:23 +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 99DB613A1; Tue, 24 Aug 2021 06:49:20 -0700 (PDT) Received: from lakrids.cambridge.arm.com (usa-sjc-imap-foss1.foss.arm.com [10.121.207.14]) by usa-sjc-imap-foss1.foss.arm.com (Postfix) with ESMTPA id CF3AD3F766; Tue, 24 Aug 2021 06:49:19 -0700 (PDT) From: Mark Rutland To: linux-arm-kernel@lists.infradead.org Cc: alexandru.elisei@arm.com, andre.przywara@arm.com, mark.rutland@arm.com, maz@kernel.org Subject: [boot-wrapper PATCH 1/5] Remove unused Set/Way cache helpers Date: Tue, 24 Aug 2021 14:48:56 +0100 Message-Id: <20210824134900.34849-2-mark.rutland@arm.com> X-Mailer: git-send-email 2.11.0 In-Reply-To: <20210824134900.34849-1-mark.rutland@arm.com> References: <20210824134900.34849-1-mark.rutland@arm.com> X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20210824_064922_510245_AEB77705 X-CRM114-Status: UNSURE ( 7.44 ) X-CRM114-Notice: Please train this message. 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: , MIME-Version: 1.0 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 We removed the Set/Way cache maintenance in commit: 864182b26c20a39d ("Remove cache maintenance") ... but forgot to remove the arch helpers which are now unused. Remove the unused helpers. Signed-off-by: Mark Rutland --- arch/aarch32/include/asm/cpu.h | 26 -------------------------- arch/aarch64/include/asm/cpu.h | 26 -------------------------- 2 files changed, 52 deletions(-) diff --git a/arch/aarch32/include/asm/cpu.h b/arch/aarch32/include/asm/cpu.h index 878be67..a7993f0 100644 --- a/arch/aarch32/include/asm/cpu.h +++ b/arch/aarch32/include/asm/cpu.h @@ -56,32 +56,6 @@ static inline uint32_t read_id_pfr1(void) return val; } -static inline uint32_t read_clidr(void) -{ - uint32_t val; - - asm volatile ("mrc p15, 1, %0, c0, c0, 1" : "=r" (val)); - return val; -} - -static inline uint32_t read_ccsidr(void) -{ - uint32_t val; - - asm volatile ("mrc p15, 1, %0, c0, c0, 0" : "=r" (val)); - return val; -} - -static inline void write_csselr(uint32_t val) -{ - asm volatile ("mcr p15, 2, %0, c0, c0, 0" : : "r" (val)); -} - -static inline void dccisw(uint32_t val) -{ - asm volatile ("mcr p15, 0, %0, c7, c14, 2" : : "r" (val)); -} - static inline void iciallu(void) { uint32_t val = 0; diff --git a/arch/aarch64/include/asm/cpu.h b/arch/aarch64/include/asm/cpu.h index ccb5397..1cddbb8 100644 --- a/arch/aarch64/include/asm/cpu.h +++ b/arch/aarch64/include/asm/cpu.h @@ -66,32 +66,6 @@ static inline uint64_t read_id_aa64pfr0(void) return val; } -static inline uint32_t read_clidr(void) -{ - uint32_t val; - - asm volatile ("mrs %0, clidr_el1" : "=r" (val)); - return val; -} - -static inline uint32_t read_ccsidr(void) -{ - uint32_t val; - - asm volatile ("mrs %0, ccsidr_el1" : "=r" (val)); - return val; -} - -static inline void write_csselr(uint32_t val) -{ - asm volatile ("msr csselr_el1, %0" : : "r" (val)); -} - -static inline void dccisw(uint32_t val) -{ - asm volatile ("dc cisw, %0" : : "r" (val)); -} - static inline void iciallu(void) { asm volatile ("ic iallu"); -- 2.11.0 _______________________________________________ linux-arm-kernel mailing list linux-arm-kernel@lists.infradead.org http://lists.infradead.org/mailman/listinfo/linux-arm-kernel