From patchwork Thu Nov 16 04:23:35 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: "J, KEERTHY" X-Patchwork-Id: 10060673 Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork.web.codeaurora.org (Postfix) with ESMTP id E4DF460230 for ; Thu, 16 Nov 2017 04:28:51 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id D6F3A2A756 for ; Thu, 16 Nov 2017 04:28:51 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id C9EBD2A758; Thu, 16 Nov 2017 04:28:51 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on pdx-wl-mail.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-4.2 required=2.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,RCVD_IN_DNSWL_MED autolearn=ham version=3.3.1 Received: from bombadil.infradead.org (bombadil.infradead.org [65.50.211.133]) (using TLSv1.2 with cipher AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.wl.linuxfoundation.org (Postfix) with ESMTPS id 642D32A756 for ; Thu, 16 Nov 2017 04:28:51 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20170209; h=Sender: Content-Transfer-Encoding:Content-Type:Cc:List-Subscribe:List-Help:List-Post: List-Archive:List-Unsubscribe:List-Id:MIME-Version:References:In-Reply-To: Message-ID:Date:Subject:To:From:Reply-To:Content-ID:Content-Description: Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID: List-Owner; bh=ILC11/rpEX6O5daPRWp3F+/rq7ng/pg2ijpuK9RkbKI=; b=QQ3W5YxpScQW0Q bFiOZVsuSY11w7HHwZ4nPWl4jcfkxeX5eNCuPMVBoy793XeNvIdqikvMsyVuvgun0EolntpDJh/Tx glCmGh3rcf9y0iaTCMocTzU0sZ9dGp2MSQ2UT6SQa2N10Ekf2+rhmjEKKS5sDYJsGA1V7sO0vthtk efilUmGsAJHP52FxgRadEqh3Yo5pF+bu2gdQKAMss5imomXuwgUH2zw/LRK6QrE2uoS4nEgun3k9o pf0c26QFslGw1lFQzUvz5WNREhdca3qxTUR9vgoDldlpHPaHoGpRUmgFX7NyYrSm52WAANZyi0C/2 wAMjpeA9BvLWOsgJ/xIg==; Received: from localhost ([127.0.0.1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.87 #1 (Red Hat Linux)) id 1eFBnG-0007pD-Hm; Thu, 16 Nov 2017 04:28:50 +0000 Received: from merlin.infradead.org ([2001:8b0:10b:1231::1]) by bombadil.infradead.org with esmtps (Exim 4.87 #1 (Red Hat Linux)) id 1eFBlt-0006pH-VH for linux-arm-kernel@bombadil.infradead.org; Thu, 16 Nov 2017 04:27:26 +0000 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=infradead.org; s=merlin.20170209; h=Content-Type:MIME-Version:References: In-Reply-To:Message-ID:Date:Subject:CC:To:From:Sender:Reply-To: Content-Transfer-Encoding:Content-ID:Content-Description:Resent-Date: Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:List-Id: List-Help:List-Unsubscribe:List-Subscribe:List-Post:List-Owner:List-Archive; bh=EhiXqzVsuOBduO1rPD3lsVZaPPIe/oO4ONEmoZXxhkg=; b=ScIFw9oKJGD1XKZ/PuzXW40xe c4aqQWDHnrFdFBd+K/9o5xN76K1112+gUxGXdbJMtFzuW2GYiPiUOGOcJnOBFT4eybZNB4UnTG3A1 V5oJlOl3I2pADUswcxD52B9PPUv/+Rxn/Z4dpMrhJs9Q7DIjXxXLjfepdkyeCbqDFmDkuEu1jL4+i 9xq3Zp86Z23U7XwFKH+/TppwS2X/LICyddOLj1/gb5m4DDNpK+5ySYFVdYy8GmJ+I2hVU23wE3gpp 4crEg7luU+mK8/JkSfrEKKtRjzt2xkfWFQgoPZT4MzKzC4MbjRLfLE2wyuwL+AXeNzaNPjxWGGnwz YpgUbMNMA==; Received: from fllnx209.ext.ti.com ([198.47.19.16]) by merlin.infradead.org with esmtps (Exim 4.87 #1 (Red Hat Linux)) id 1eFBlp-0000x0-SO for linux-arm-kernel@lists.infradead.org; Thu, 16 Nov 2017 04:27:23 +0000 Received: from dflxv15.itg.ti.com ([128.247.5.124]) by fllnx209.ext.ti.com (8.15.1/8.15.1) with ESMTP id vAG4OZ4T030957; Wed, 15 Nov 2017 22:24:35 -0600 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=ti.com; s=ti-com-17Q1; t=1510806275; bh=qddnMCFfKeC1zv7AXJGJEc7JLbKagJi/IqFKUbuLfJo=; h=From:To:CC:Subject:Date:In-Reply-To:References; b=C2Hd4yNIOX5RcQ3pLZSh885+p9ZPNK2W5Ruzsts7yi/+ktgajqBEB/hvZpTORgNpf ZW++5FE+hkFbxbYBhXGiwYTmaaOpx5bpo6asYWH2tv15Y+bywHeDzzUtjoT+vVqsL7 q2tj89CAQcPdEbgKpDPM2QnwJeOcSHC7ddyKXnFo= Received: from DFLE102.ent.ti.com (dfle102.ent.ti.com [10.64.6.23]) by dflxv15.itg.ti.com (8.14.3/8.13.8) with ESMTP id vAG4OUSV000579; Wed, 15 Nov 2017 22:24:30 -0600 Received: from DFLE107.ent.ti.com (10.64.6.28) by DFLE102.ent.ti.com (10.64.6.23) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA384_P256) id 15.1.845.34; Wed, 15 Nov 2017 22:24:30 -0600 Received: from dflp32.itg.ti.com (10.64.6.15) by DFLE107.ent.ti.com (10.64.6.28) with Microsoft SMTP Server (version=TLS1_0, cipher=TLS_RSA_WITH_AES_256_CBC_SHA) id 15.1.845.34 via Frontend Transport; Wed, 15 Nov 2017 22:24:29 -0600 Received: from ula0393675.india.ti.com (ileax41-snat.itg.ti.com [10.172.224.153]) by dflp32.itg.ti.com (8.14.3/8.13.8) with ESMTP id vAG4ODfx015762; Wed, 15 Nov 2017 22:24:24 -0600 From: Keerthy To: , , Subject: [PATCH v3 2/9] arm: omap: timer: Wrap the inline functions under OMAP2PLUS define Date: Thu, 16 Nov 2017 09:53:35 +0530 Message-ID: <1510806222-22096-3-git-send-email-j-keerthy@ti.com> X-Mailer: git-send-email 1.9.1 In-Reply-To: <1510806222-22096-1-git-send-email-j-keerthy@ti.com> References: <1510806222-22096-1-git-send-email-j-keerthy@ti.com> MIME-Version: 1.0 X-EXCLAIMER-MD-CONFIG: e1e8a2fd-e40a-4ac6-ac9b-f7e9cc9ee180 X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.21 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: linux-pwm@vger.kernel.org, grygorii.strashko@ti.com, j-keerthy@ti.com, daniel.lezcano@linaro.org, linux@armlinux.org.uk, robh+dt@kernel.org, ladis@linux-mips.org, sebastian.reichel@collabora.co.uk, linux-omap@vger.kernel.org, linux-arm-kernel@lists.infradead.org Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+patchwork-linux-arm=patchwork.kernel.org@lists.infradead.org X-Virus-Scanned: ClamAV using ClamSMTP Wrap the inline functions under OMAP2PLUS/OMAP1 defines. Signed-off-by: Keerthy --- arch/arm/plat-omap/include/plat/dmtimer.h | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/arch/arm/plat-omap/include/plat/dmtimer.h b/arch/arm/plat-omap/include/plat/dmtimer.h index dd79f30..862ad62 100644 --- a/arch/arm/plat-omap/include/plat/dmtimer.h +++ b/arch/arm/plat-omap/include/plat/dmtimer.h @@ -276,6 +276,12 @@ struct omap_dm_timer { #define OMAP_TIMER_TICK_INT_MASK_COUNT_REG \ (_OMAP_TIMER_TICK_INT_MASK_COUNT_OFFSET | (WP_TOWR << WPSHIFT)) +/* + * The below are inlined to optimize code size for system timers. Other code + * should not need these at all, see + * include/linux/platform_data/pwm_omap_dmtimer.h + */ +#if defined(CONFIG_ARCH_OMAP1) || defined(CONFIG_ARCH_OMAP2PLUS) static inline u32 __omap_dm_timer_read(struct omap_dm_timer *timer, u32 reg, int posted) { @@ -414,5 +420,5 @@ static inline void __omap_dm_timer_write_status(struct omap_dm_timer *timer, { writel_relaxed(value, timer->irq_stat); } - +#endif /* CONFIG_ARCH_OMAP1 || CONFIG_ARCH_OMAP2PLUS */ #endif /* __ASM_ARCH_DMTIMER_H */