Skip to contentSkip to conversation

ARM: EXYNOS: use u8 for val[] in struct exynos_pmu_conf

PATCH Superseded Bartlomiej Zolnierkiewicz 2 participants 2 messages Jul 8, 2014 – Nov 26, 2014

Subsystems (3)

v1 of 2 Superseded Latest is v2 →

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 ARM: EXYNOS: use u8 for val[] in struct exynos_pmu_conf

Values stored in val[] are never bigger than a byte.

text data bss dec hex filename

   5264       4       4    5272    1498 arch/arm/mach-exynos/pmu.o.before
   2992       4       4    3000     bb8 arch/arm/mach-exynos/pmu.o.after
---
 arch/arm/mach-exynos/common.h | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
arch/arm/mach-exynos/common.h +1 -1
index b850db4..55ff019 100644
@@ -101,7 +101,7 @@ enum sys_powerdown {
 
 struct exynos_pmu_conf {
 	void __iomem *reg;
-	unsigned int val[NUM_SYS_POWERDOWN];
+	u8 val[NUM_SYS_POWERDOWN];
 };
 
 extern void exynos_sys_powerdown_conf(enum sys_powerdown mode);
Signature · 1 line
1.8.2.3
#1 lore raw

Hi Bartilomiej,

Quoted 8 lines · Bartlomiej Zolnierkiewicz

Values stored in val[] are never bigger than a byte.

text data bss dec hex filename
5264 4 4 5272 1498 arch/arm/mach-exynos/pmu.o.before
2992 4 4 3000 bb8 arch/arm/mach-exynos/pmu.o.after

I tested this patch and it's really helpful to reduce size.
How about resubmitting this change? As this will not get applied on current tree.

Thanks,
Pankaj Dubey

Quoted 18 lines
---
  arch/arm/mach-exynos/common.h | 2 +-
  1 file changed, 1 insertion(+), 1 deletion(-)
arch/arm/mach-exynos/common.h +1 -1
index b850db4..55ff019 100644
@@ -101,7 +101,7 @@ enum sys_powerdown {
 
  struct exynos_pmu_conf {
  	void __iomem *reg;
-	unsigned int val[NUM_SYS_POWERDOWN];
+	u8 val[NUM_SYS_POWERDOWN];
  };
 
  extern void exynos_sys_powerdown_conf(enum sys_powerdown mode);