From patchwork Thu Oct 29 21:53:30 2009 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Matt Fleming X-Patchwork-Id: 56527 Received: from vger.kernel.org (vger.kernel.org [209.132.176.167]) by demeter.kernel.org (8.14.2/8.14.2) with ESMTP id n9TLrZRM012235 for ; Thu, 29 Oct 2009 21:53:35 GMT Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1755303AbZJ2Vx3 (ORCPT ); Thu, 29 Oct 2009 17:53:29 -0400 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S1755376AbZJ2Vx3 (ORCPT ); Thu, 29 Oct 2009 17:53:29 -0400 Received: from 124x34x33x190.ap124.ftth.ucom.ne.jp ([124.34.33.190]:36131 "EHLO master.linux-sh.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1755303AbZJ2Vx3 (ORCPT ); Thu, 29 Oct 2009 17:53:29 -0400 Received: from localhost (unknown [127.0.0.1]) by master.linux-sh.org (Postfix) with ESMTP id F31616375A; Thu, 29 Oct 2009 21:53:22 +0000 (UTC) X-Virus-Scanned: amavisd-new at linux-sh.org Received: from master.linux-sh.org ([127.0.0.1]) by localhost (master.linux-sh.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id Lk7IhLjBlpbE; Fri, 30 Oct 2009 06:53:22 +0900 (JST) Received: from localhost (82-38-64-26.cable.ubr06.brad.blueyonder.co.uk [82.38.64.26]) by master.linux-sh.org (Postfix) with ESMTP id DCB3563758; Fri, 30 Oct 2009 06:53:21 +0900 (JST) From: Matt Fleming To: Paul Mundt Cc: linux-sh@vger.kernel.org Subject: [PATCH] sh: Do not apply virt_to_phys() to a physical address Date: Thu, 29 Oct 2009 21:53:30 +0000 Message-Id: <1256853210-2517-1-git-send-email-matt@console-pimps.org> X-Mailer: git-send-email 1.6.2.5 Sender: linux-sh-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-sh@vger.kernel.org diff --git a/arch/sh/mm/cache-sh4.c b/arch/sh/mm/cache-sh4.c index 4a2fbf2..b5abe94 100644 --- a/arch/sh/mm/cache-sh4.c +++ b/arch/sh/mm/cache-sh4.c @@ -95,8 +95,7 @@ static inline void flush_cache_one(unsigned long start, unsigned long phys) exec_offset = cached_to_uncached; local_irq_save(flags); - __flush_cache_one(start | SH_CACHE_ASSOC, - virt_to_phys(phys), exec_offset); + __flush_cache_one(start | SH_CACHE_ASSOC, phys, exec_offset); local_irq_restore(flags); }