From patchwork Wed Nov 20 18:21:24 2013 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Daniel Kurtz X-Patchwork-Id: 3214781 Return-Path: X-Original-To: patchwork-linux-arm@patchwork.kernel.org Delivered-To: patchwork-parsemail@patchwork2.web.kernel.org Received: from mail.kernel.org (mail.kernel.org [198.145.19.201]) by patchwork2.web.kernel.org (Postfix) with ESMTP id 95C8EC045B for ; Wed, 20 Nov 2013 18:23:11 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id 482272077F for ; Wed, 20 Nov 2013 18:23:10 +0000 (UTC) Received: from casper.infradead.org (casper.infradead.org [85.118.1.10]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPS id 07D302071D for ; Wed, 20 Nov 2013 18:23:09 +0000 (UTC) Received: from merlin.infradead.org ([2001:4978:20e::2]) by casper.infradead.org with esmtps (Exim 4.80.1 #2 (Red Hat Linux)) id 1VjCPu-000107-W4; Wed, 20 Nov 2013 18:22:23 +0000 Received: from localhost ([::1] helo=merlin.infradead.org) by merlin.infradead.org with esmtp (Exim 4.80.1 #2 (Red Hat Linux)) id 1VjCPj-0001ma-P9; Wed, 20 Nov 2013 18:22:11 +0000 Received: from mail-pb0-x22b.google.com ([2607:f8b0:400e:c01::22b]) by merlin.infradead.org with esmtps (Exim 4.80.1 #2 (Red Hat Linux)) id 1VjCPf-0001jX-OX for linux-arm-kernel@lists.infradead.org; Wed, 20 Nov 2013 18:22:08 +0000 Received: by mail-pb0-f43.google.com with SMTP id rq2so8214335pbb.16 for ; Wed, 20 Nov 2013 10:21:41 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=chromium.org; s=google; h=from:to:cc:subject:date:message-id; bh=R3XJ/ZNa8dceckSlCcr1jzhA/+Y8ZEfsj06ztWjz8LM=; b=PAwD3sKkLL/dAehqy2FQZVS/pskSIxaBQ6qBsNeAlPq1JCMqu0y07Rry0DnE+JHGbq RTyBMZN07eTdz8U9wHb7eVZtVNSkDFQr/27KOMmiQKQZjXkAlEZam2lSX++WR/xYEjvB Iwi1Q/VNKwLePhB+kDD+9SjcIbjASufMnSi8c= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:from:to:cc:subject:date:message-id; bh=R3XJ/ZNa8dceckSlCcr1jzhA/+Y8ZEfsj06ztWjz8LM=; b=BV78iNm7l0KT2uyu5Rnmqc3OOkL5HJ83Zi1uMxojkROwc0mBxXxtzdkfTko9QuxGM7 BzAOGNyLlSEaEiN8/fGDx+cnUGEVpZYoX1O2zGlYxmZ3JecBdh5IISQSei3zbna2RMkp uPPswXPlnLudQ4HunkJlhcEeYTn8gm2DYwozyrhvRhBV0fhIl8TGH4vncSbd5yBrnMmN O09G7k7RDgywc23WANEh8m4WYOKUbMglDchbLSkzGHTgN3STtyRSKDhKyxmbBKi1fK0M 6a2fZwLAVg+MtWaHkKNP5OkFYg3Wd7svYztsZetI3eLpJPe1hERbRmYX0vz2TSXXfHpJ Mkfg== X-Gm-Message-State: ALoCoQmfSl+EFmQj0ExPhVpuki75YVrE+CiQeawTBB01i8Dkk7BPfzaraD/SjfUAzuFdISQdOGSL X-Received: by 10.69.18.234 with SMTP id gp10mr1984235pbd.105.1384971701846; Wed, 20 Nov 2013 10:21:41 -0800 (PST) Received: from djkurtzt530-glaptop.corp.google.com ([172.30.22.19]) by mx.google.com with ESMTPSA id sg1sm39519561pbb.16.2013.11.20.10.21.37 for (version=TLSv1.1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Wed, 20 Nov 2013 10:21:40 -0800 (PST) From: Daniel Kurtz To: Russell King , Kukjin Kim , Ben Dooks Subject: [PATCH 1/3] ARM: EXYNOS: pmu: Constify data tables Date: Thu, 21 Nov 2013 02:21:24 +0800 Message-Id: <1384971686-7208-1-git-send-email-djkurtz@chromium.org> X-Mailer: git-send-email 1.8.4.1 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20131120_132208_047592_D9423BBF X-CRM114-Status: GOOD ( 11.99 ) X-Spam-Score: -2.0 (--) Cc: linux-samsung-soc@vger.kernel.org, Heiko Stuebner , Tomasz Figa , linux-kernel@vger.kernel.org, Daniel Kurtz , Doug Andersen , Amit Daniel Kachhap , Abhilash Kesavan , linux-arm-kernel@lists.infradead.org X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , MIME-Version: 1.0 Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+patchwork-linux-arm=patchwork.kernel.org@lists.infradead.org X-Spam-Status: No, score=-4.6 required=5.0 tests=BAYES_00,DKIM_SIGNED, RCVD_IN_DNSWL_MED,RP_MATCHES_RCVD,T_DKIM_INVALID,UNPARSEABLE_RELAY autolearn=unavailable version=3.3.1 X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on mail.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP These tables are all immutable, make them const to save 4416 bytes of RAM. size arch/arm/mach-exynos/pmu.o text data bss 848 4420 4 // before 5264 4 4 // after Signed-off-by: Daniel Kurtz Reviewed-by: Tomasz Figa Reviewed-by: Tomasz Figa --- arch/arm/mach-exynos/pmu.c | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/arch/arm/mach-exynos/pmu.c b/arch/arm/mach-exynos/pmu.c index 97d6885..6609145 100644 --- a/arch/arm/mach-exynos/pmu.c +++ b/arch/arm/mach-exynos/pmu.c @@ -17,9 +17,9 @@ #include "common.h" -static struct exynos_pmu_conf *exynos_pmu_config; +static const struct exynos_pmu_conf *exynos_pmu_config; -static struct exynos_pmu_conf exynos4210_pmu_config[] = { +static const struct exynos_pmu_conf exynos4210_pmu_config[] = { /* { .reg = address, .val = { AFTR, LPA, SLEEP } */ { S5P_ARM_CORE0_LOWPWR, { 0x0, 0x0, 0x2 } }, { S5P_DIS_IRQ_CORE0, { 0x0, 0x0, 0x0 } }, @@ -95,7 +95,7 @@ static struct exynos_pmu_conf exynos4210_pmu_config[] = { { PMU_TABLE_END,}, }; -static struct exynos_pmu_conf exynos4x12_pmu_config[] = { +static const struct exynos_pmu_conf exynos4x12_pmu_config[] = { { S5P_ARM_CORE0_LOWPWR, { 0x0, 0x0, 0x2 } }, { S5P_DIS_IRQ_CORE0, { 0x0, 0x0, 0x0 } }, { S5P_DIS_IRQ_CENTRAL0, { 0x0, 0x0, 0x0 } }, @@ -203,7 +203,7 @@ static struct exynos_pmu_conf exynos4x12_pmu_config[] = { { PMU_TABLE_END,}, }; -static struct exynos_pmu_conf exynos4412_pmu_config[] = { +static const struct exynos_pmu_conf exynos4412_pmu_config[] = { { S5P_ARM_CORE2_LOWPWR, { 0x0, 0x0, 0x2 } }, { S5P_DIS_IRQ_CORE2, { 0x0, 0x0, 0x0 } }, { S5P_DIS_IRQ_CENTRAL2, { 0x0, 0x0, 0x0 } }, @@ -213,7 +213,7 @@ static struct exynos_pmu_conf exynos4412_pmu_config[] = { { PMU_TABLE_END,}, }; -static struct exynos_pmu_conf exynos5250_pmu_config[] = { +static const struct exynos_pmu_conf exynos5250_pmu_config[] = { /* { .reg = address, .val = { AFTR, LPA, SLEEP } */ { EXYNOS5_ARM_CORE0_SYS_PWR_REG, { 0x0, 0x0, 0x2} }, { EXYNOS5_DIS_IRQ_ARM_CORE0_LOCAL_SYS_PWR_REG, { 0x0, 0x0, 0x0} }, @@ -317,7 +317,7 @@ static struct exynos_pmu_conf exynos5250_pmu_config[] = { { PMU_TABLE_END,}, }; -static void __iomem *exynos5_list_both_cnt_feed[] = { +static void __iomem * const exynos5_list_both_cnt_feed[] = { EXYNOS5_ARM_CORE0_OPTION, EXYNOS5_ARM_CORE1_OPTION, EXYNOS5_ARM_COMMON_OPTION, @@ -331,7 +331,7 @@ static void __iomem *exynos5_list_both_cnt_feed[] = { EXYNOS5_TOP_PWR_SYSMEM_OPTION, }; -static void __iomem *exynos5_list_diable_wfi_wfe[] = { +static void __iomem * const exynos5_list_diable_wfi_wfe[] = { EXYNOS5_ARM_CORE1_OPTION, EXYNOS5_FSYS_ARM_OPTION, EXYNOS5_ISP_ARM_OPTION,