Received: by 2002:a05:6a10:a0d1:0:0:0:0 with SMTP id j17csp138025pxa; Thu, 13 Aug 2020 22:51:43 -0700 (PDT) X-Google-Smtp-Source: ABdhPJy0owDwgmyVmsV8+4bSC2ene5sR2Lpc6WozzaiEOMchicssaeDnyQ6TPWFI/YWdiGAJK/dw X-Received: by 2002:a17:906:3a85:: with SMTP id y5mr872703ejd.507.1597384303183; Thu, 13 Aug 2020 22:51:43 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1597384303; cv=none; d=google.com; s=arc-20160816; b=oPM8H5BGSq3/+QzwJEHgNtkOi8Tok55KoPLAAJ/Znwe0eORhV2pHC5CDnrCBGkAl2G pYbDQNtwfw/UdQt3d5yvz7VgqTFhsdSJMMM263PjJAldfdBd+OwKGI59rcCxFWBxl4Vf 2I8qLRogX07r0qFdjqD+OvYb9IP/GYArisrqV2C2g5Q+a6pL5SMFsPxH8awv/OgOI+19 KRba+qV+hEjYM1+AGcya6oqA+v6ZmMr5nSeZEDOqs/VfCU7e1s5/auJLkt66T7C9RAAG AyIm94jW6+mDPO1+DlL0fcNY3hm+i6FQBNpHlW1x/hf2RaPu28wbFQfCuYbfIT4Wv3SR aGjg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:date:cc:to:subject:from:message-id; bh=9MCUDMNxIrqdgb2zIpoaD5w0pzhRKlTEZTYaH8QU57Y=; b=indvzVLYm0fjitNwLvaGv7LvRDQ1mHwnqeMidi/pM8/4KEEymxxeSU4FrbWldW7HJT XPBUS2em9XXfNl5HEDUzFxeJ88D5kYvK4w/Mtrt49SqdEczrQ4sJPQNQjsonxmna7itp /D56KLMavres1pgzSC5Ahs2L0KAz+iFpb+bJJLkGsbei5UQeHML/AruHPDckrPi6wY75 /WlBrcddltV+QnevYiHzMKwdi/2eUeSAjCkSWe6ibG4CyBPRCJY1/DrQ1RhA0D99T2j5 EHIGYKCbRhr4MjSoR29SA53oeZDVsSzqLQJGKGssRVBrc8cggOHYwJYB+ZhWglM8cm5+ rZdg== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id dt1si6628055ejc.574.2020.08.13.22.51.20; Thu, 13 Aug 2020 22:51:43 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726362AbgHNFtd (ORCPT + 99 others); Fri, 14 Aug 2020 01:49:33 -0400 Received: from pegase1.c-s.fr ([93.17.236.30]:8601 "EHLO pegase1.c-s.fr" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726064AbgHNFtc (ORCPT ); Fri, 14 Aug 2020 01:49:32 -0400 Received: from localhost (mailhub1-int [192.168.12.234]) by localhost (Postfix) with ESMTP id 4BSXZK3HV6z9vD2y; Fri, 14 Aug 2020 07:49:29 +0200 (CEST) X-Virus-Scanned: Debian amavisd-new at c-s.fr Received: from pegase1.c-s.fr ([192.168.12.234]) by localhost (pegase1.c-s.fr [192.168.12.234]) (amavisd-new, port 10024) with ESMTP id EfK9pGLpjw_0; Fri, 14 Aug 2020 07:49:29 +0200 (CEST) Received: from messagerie.si.c-s.fr (messagerie.si.c-s.fr [192.168.25.192]) by pegase1.c-s.fr (Postfix) with ESMTP id 4BSXZK2NMQz9vD2x; Fri, 14 Aug 2020 07:49:29 +0200 (CEST) Received: from localhost (localhost [127.0.0.1]) by messagerie.si.c-s.fr (Postfix) with ESMTP id 20D6C8B775; Fri, 14 Aug 2020 07:49:30 +0200 (CEST) X-Virus-Scanned: amavisd-new at c-s.fr Received: from messagerie.si.c-s.fr ([127.0.0.1]) by localhost (messagerie.si.c-s.fr [127.0.0.1]) (amavisd-new, port 10023) with ESMTP id Yun2EVLVvFs0; Fri, 14 Aug 2020 07:49:30 +0200 (CEST) Received: from po17688vm.idsi0.si.c-s.fr (unknown [192.168.4.90]) by messagerie.si.c-s.fr (Postfix) with ESMTP id B15D98B767; Fri, 14 Aug 2020 07:49:29 +0200 (CEST) Received: by po17688vm.idsi0.si.c-s.fr (Postfix, from userid 0) id 2459965C90; Fri, 14 Aug 2020 05:49:29 +0000 (UTC) Message-Id: <245cabd8f291facac8c8c5fd370e361a69e02860.1597384145.git.christophe.leroy@csgroup.eu> From: Christophe Leroy Subject: [PATCH v2] powerpc: Remove flush_instruction_cache() on 8xx To: Benjamin Herrenschmidt , Paul Mackerras , Michael Ellerman , hch@infradead.org Cc: linux-kernel@vger.kernel.org, linuxppc-dev@lists.ozlabs.org Date: Fri, 14 Aug 2020 05:49:29 +0000 (UTC) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org flush_instruction_cache() is never used on 8xx, remove it. Signed-off-by: Christophe Leroy --- v2: Becomes a standalone patch independant of the series dismantling the ASM flush_instruction_cache() --- arch/powerpc/mm/nohash/8xx.c | 7 ------- 1 file changed, 7 deletions(-) diff --git a/arch/powerpc/mm/nohash/8xx.c b/arch/powerpc/mm/nohash/8xx.c index d2b37146ae6c..231ca95f9ffb 100644 --- a/arch/powerpc/mm/nohash/8xx.c +++ b/arch/powerpc/mm/nohash/8xx.c @@ -244,13 +244,6 @@ void set_context(unsigned long id, pgd_t *pgd) mb(); } -void flush_instruction_cache(void) -{ - isync(); - mtspr(SPRN_IC_CST, IDC_INVALL); - isync(); -} - #ifdef CONFIG_PPC_KUEP void __init setup_kuep(bool disabled) { -- 2.25.0