From patchwork Wed Nov 17 06:51:08 2010 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Peppe CAVALLARO X-Patchwork-Id: 331251 X-Patchwork-Delegate: lethal@linux-sh.org Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by demeter1.kernel.org (8.14.4/8.14.3) with ESMTP id oAH7Il5K007680 for ; Wed, 17 Nov 2010 07:18:48 GMT Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1759802Ab0KQHSr (ORCPT ); Wed, 17 Nov 2010 02:18:47 -0500 Received: from eu1sys200aog120.obsmtp.com ([207.126.144.149]:41793 "EHLO eu1sys200aog120.obsmtp.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1759799Ab0KQHSq (ORCPT ); Wed, 17 Nov 2010 02:18:46 -0500 Received: from source ([164.129.1.35]) (using TLSv1) by eu1sys200aob120.postini.com ([207.126.147.11]) with SMTP ID DSNKTOOB1c5Y15cSCiiFKLMRjW3geZ/h201p@postini.com; Wed, 17 Nov 2010 07:18:46 UTC Received: from zeta.dmz-eu.st.com (ns2.st.com [164.129.230.9]) by beta.dmz-eu.st.com (STMicroelectronics) with ESMTP id 7C1616A for ; Wed, 17 Nov 2010 06:51:14 +0000 (GMT) Received: from mail1.ctn.st.com (mail1.ctn.st.com [164.130.116.128]) by zeta.dmz-eu.st.com (STMicroelectronics) with ESMTP id 4CE7A1485 for ; Wed, 17 Nov 2010 06:51:14 +0000 (GMT) Received: from localhost ([164.130.129.16]) by mail1.ctn.st.com (MOS 3.8.7a) with ESMTP id DLS00385 (AUTH cavagiu); Wed, 17 Nov 2010 07:51:13 +0100 (CET) From: Giuseppe CAVALLARO To: linux-sh@vger.kernel.org Cc: Giuseppe Cavallaro , Carmelo Amoroso Subject: [PATCH (sh-2.6)] sh: avoid to flush all cache in sys_cacheflush Date: Wed, 17 Nov 2010 07:51:08 +0100 Message-Id: <1289976668-27728-1-git-send-email-peppe.cavallaro@st.com> X-Mailer: git-send-email 1.5.5.6 Sender: linux-sh-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-sh@vger.kernel.org X-Greylist: IP, sender and recipient auto-whitelisted, not delayed by milter-greylist-4.2.3 (demeter1.kernel.org [140.211.167.41]); Wed, 17 Nov 2010 07:18:48 +0000 (UTC) diff --git a/arch/sh/kernel/sys_sh.c b/arch/sh/kernel/sys_sh.c index 81f5837..8c6a350 100644 --- a/arch/sh/kernel/sys_sh.c +++ b/arch/sh/kernel/sys_sh.c @@ -88,7 +88,7 @@ asmlinkage int sys_cacheflush(unsigned long addr, unsigned long len, int op) } if (op & CACHEFLUSH_I) - flush_cache_all(); + flush_icache_range(addr, addr+len); up_read(¤t->mm->mmap_sem); return 0;