From patchwork Thu May 27 16:02:12 2010 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Ohad Ben Cohen X-Patchwork-Id: 102721 X-Patchwork-Delegate: omar.ramirez@ti.com Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by demeter.kernel.org (8.14.3/8.14.3) with ESMTP id o4RG2iU7013494 for ; Thu, 27 May 2010 16:02:44 GMT Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S932118Ab0E0QCn (ORCPT ); Thu, 27 May 2010 12:02:43 -0400 Received: from fg-out-1718.google.com ([72.14.220.157]:14152 "EHLO fg-out-1718.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1759186Ab0E0QCm (ORCPT ); Thu, 27 May 2010 12:02:42 -0400 Received: by fg-out-1718.google.com with SMTP id d23so83476fga.1 for ; Thu, 27 May 2010 09:02:42 -0700 (PDT) Received: by 10.87.62.17 with SMTP id p17mr592436fgk.30.1274976162017; Thu, 27 May 2010 09:02:42 -0700 (PDT) Received: from localhost.localdomain (109-186-189-65.bb.netvision.net.il [109.186.189.65]) by mx.google.com with ESMTPS id 22sm1944945fkq.17.2010.05.27.09.02.39 (version=TLSv1/SSLv3 cipher=RC4-MD5); Thu, 27 May 2010 09:02:41 -0700 (PDT) From: Ohad Ben-Cohen To: Cc: Felipe Contreras , Ivan Gomez Castellanos , Kanigeri Hari , Omar Ramirez Luna , Guzman Lugo Fernando , Menon Nishanth , Hiroshi Doyu , Ohad Ben-Cohen Subject: [PATCH v3 5/7] DSPBRIDGE: remove mem_flush_cache Date: Thu, 27 May 2010 19:02:12 +0300 Message-Id: <1274976134-22769-6-git-send-email-ohad@wizery.com> X-Mailer: git-send-email 1.7.0.4 In-Reply-To: <1274976134-22769-1-git-send-email-ohad@wizery.com> References: <1274976134-22769-1-git-send-email-ohad@wizery.com> Sender: linux-omap-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-omap@vger.kernel.org X-Greylist: IP, sender and recipient auto-whitelisted, not delayed by milter-greylist-4.2.3 (demeter.kernel.org [140.211.167.41]); Thu, 27 May 2010 16:02:44 +0000 (UTC) diff --git a/arch/arm/plat-omap/include/dspbridge/drv.h b/arch/arm/plat-omap/include/dspbridge/drv.h index 3186935..2eeb47f 100644 --- a/arch/arm/plat-omap/include/dspbridge/drv.h +++ b/arch/arm/plat-omap/include/dspbridge/drv.h @@ -466,21 +466,6 @@ extern void *mem_alloc_phys_mem(IN u32 byte_size, IN u32 ulAlign, OUT u32 *pPhysicalAddress); /* - * ======== mem_flush_cache ======== - * Purpose: - * Performs system cache sync with discard - * Parameters: - * pMemBuf: Pointer to memory region to be flushed. - * pMemBuf: Size of the memory region to be flushed. - * Returns: - * Requires: - * MEM is initialized. - * Ensures: - * Cache is synchronized - */ -extern void mem_flush_cache(void *pMemBuf, u32 byte_size, s32 FlushType); - -/* * ======== mem_free_phys_mem ======== * Purpose: * Free the given block of physically contiguous memory. diff --git a/drivers/dsp/bridge/rmgr/drv.c b/drivers/dsp/bridge/rmgr/drv.c index a8e711a..6ffae0b 100644 --- a/drivers/dsp/bridge/rmgr/drv.c +++ b/drivers/dsp/bridge/rmgr/drv.c @@ -1039,39 +1039,6 @@ void *mem_alloc_phys_mem(u32 byte_size, u32 ulAlign, OUT u32 * pPhysicalAddress) } /* - * ======== mem_flush_cache ======== - * Purpose: - * Flush cache - */ -void mem_flush_cache(void *pMemBuf, u32 byte_size, s32 FlushType) -{ - if (!pMemBuf) - return; - - switch (FlushType) { - /* invalidate only */ - case PROC_INVALIDATE_MEM: - dmac_inv_range(pMemBuf, pMemBuf + byte_size); - outer_inv_range(__pa((u32) pMemBuf), __pa((u32) pMemBuf + - byte_size)); - break; - /* writeback only */ - case PROC_WRITEBACK_MEM: - dmac_clean_range(pMemBuf, pMemBuf + byte_size); - outer_clean_range(__pa((u32) pMemBuf), __pa((u32) pMemBuf + - byte_size)); - break; - /* writeback and invalidate */ - case PROC_WRITEBACK_INVALIDATE_MEM: - dmac_flush_range(pMemBuf, pMemBuf + byte_size); - outer_flush_range(__pa((u32) pMemBuf), __pa((u32) pMemBuf + - byte_size)); - break; - } - -} - -/* * ======== mem_free_phys_mem ======== * Purpose: * Free the given block of physically contiguous memory.