Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > linux.kernel > #1474612 > unrolled thread

Re: [PATCH 1/2] clk: samsung: exynos5260: Move struct samsung_cmu_info to init section

Started bySylwester Nawrocki <s.nawrocki@samsung.com>
First post2016-09-01 23:20 +0200
Last post2016-09-01 23:20 +0200
Articles 1 — 1 participant

Back to article view | Back to linux.kernel

This discussion starts older than the indexed window; earlier articles aren't shown. The article labeled Started by below is the oldest one visible, not the original post.


Contents

  Re: [PATCH 1/2] clk: samsung: exynos5260: Move struct samsung_cmu_info  to init section Sylwester Nawrocki <s.nawrocki@samsung.com> - 2016-09-01 23:20 +0200

#1474612 — Re: [PATCH 1/2] clk: samsung: exynos5260: Move struct samsung_cmu_info to init section

FromSylwester Nawrocki <s.nawrocki@samsung.com>
Date2016-09-01 23:20 +0200
SubjectRe: [PATCH 1/2] clk: samsung: exynos5260: Move struct samsung_cmu_info to init section
Message-ID<scHyW-75a-31@gated-at.bofh.it>
On 08/22/2016 04:49 AM, Chanwoo Choi wrote:
> This patch moves the all samsung_cmu_info struct to initconst section
> because they are used only in initconst section.
> 
> Signed-off-by: Chanwoo Choi <cw00.choi@samsung.com>

Applied with the commit message changed as below, thanks.

--------8<--------
clk: samsung: exynos5260: Move struct samsung_cmu_info to init section
    
 This patch moves the samsung_cmu_info struct instances to initconst section,
 this decreases the kernel image size by 784 bytes, which makes zImage smaller
 by 480 bytes.
    
 The patch increases .init.rodata section size by 780 bytes but decreases
 .init.text section size by 1564 bytes.
    
 Size of the drivers/clk/samsung/clk-exynos5260.o object file is 29100 bytes
 without the patch and 28316 after applying the patch.
    
 The section size differences are as below:
 15c15
 <   3 .init.text    000006b8  00000000  00000000  00000034  2**2
 ---
 >   3 .init.text    0000009c  00000000  00000000  00000034  2**2
 25c25
 <   8 .init.rodata  00003f6c  00000000  00000000  00002f20  2**2
 ---
 >   8 .init.rodata  00004278  00000000  00000000  00002904  2**2
    
 Signed-off-by: Chanwoo Choi <cw00.choi@samsung.com>
 Signed-off-by: Sylwester Nawrocki <s.nawrocki@samsung.com>
--------8<--------

[toc] | [standalone]


Back to top | Article view | linux.kernel


csiph-web