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


Groups > linux.kernel > #1469204

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

From Chanwoo Choi <cw00.choi@samsung.com>
Newsgroups linux.kernel
Subject Re: [PATCH 1/2] clk: samsung: exynos5260: Move struct samsung_cmu_info to init section
Date 2016-08-24 10:40 +0200
Message-ID <s9BT4-89D-9@gated-at.bofh.it> (permalink)
References (2 earlier) <s99N7-6le-7@gated-at.bofh.it> <s98em-5c0-7@gated-at.bofh.it> <s99N7-6le-5@gated-at.bofh.it> <s9gYi-2wu-25@gated-at.bofh.it> <s9yiu-5HK-7@gated-at.bofh.it>
Organization Samsung Electronics

Show all headers | View raw


On 2016년 08월 24일 13:43, Stephen Boyd wrote:
> On 08/23, Sylwester Nawrocki wrote:
>> On 08/23/2016 04:35 AM, Chanwoo Choi wrote:
>> I checked stripped object files and it seems with the patch there
>> is some saving of the kernel image size. Exactly 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.  Looks like 
>> a static initializer is cheaper.
>>
>> $ ls -l  drivers/clk/samsung/clk-exynos5260.o
>>
>> < -rw-rw-r-- 1 snawrocki snawrocki 29100 Aug 23 11:35 drivers/clk/samsung/clk-exynos5260.o
>> ---
>>> -rw-rw-r-- 1 snawrocki snawrocki 28316 Aug 23 11:32 drivers/clk/samsung/clk-exynos5260.o
>>
>>
>> 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
>>
>> So the saving is rather insignificant but the patch doesn't make
>> things worse and I'd say it might be worth applying.
>>
> 
> Sounds good. This sort of information should be in the commit
> text though. Talking about const doesn't make any sense to me.

Do you mean that 'const' is initconst secion?
If possible, could you explain the anything
why you don't make sense about 'const'?

-- 
Best Regards,
Chanwoo Choi

Back to linux.kernel | Previous | NextPrevious in thread | Next in thread | Find similar | Unroll thread


Thread

[PATCH 1/2] clk: samsung: exynos5260: Move struct samsung_cmu_info to  init section Chanwoo Choi <cw00.choi@samsung.com> - 2016-08-22 05:00 +0200
  Re: [PATCH 1/2] clk: samsung: exynos5260: Move struct  samsung_cmu_info to init section Stephen Boyd <sboyd@codeaurora.org> - 2016-08-23 03:00 +0200
    Re: [PATCH 1/2] clk: samsung: exynos5260: Move struct samsung_cmu_info  to init section Chanwoo Choi <cw00.choi@samsung.com> - 2016-08-23 04:40 +0200
      Re: [PATCH 1/2] clk: samsung: exynos5260: Move struct samsung_cmu_info  to init section Sylwester Nawrocki <s.nawrocki@samsung.com> - 2016-08-23 12:20 +0200
        Re: [PATCH 1/2] clk: samsung: exynos5260: Move struct  samsung_cmu_info to init section Stephen Boyd <sboyd@codeaurora.org> - 2016-08-24 06:50 +0200
          Re: [PATCH 1/2] clk: samsung: exynos5260: Move struct samsung_cmu_info  to init section Chanwoo Choi <cw00.choi@samsung.com> - 2016-08-24 10:40 +0200
            Re: [PATCH 1/2] clk: samsung: exynos5260: Move struct  samsung_cmu_info to init section Stephen Boyd <sboyd@codeaurora.org> - 2016-08-25 07:00 +0200
              Re: [PATCH 1/2] clk: samsung: exynos5260: Move struct samsung_cmu_info  to init section Chanwoo Choi <cw00.choi@samsung.com> - 2016-08-25 09:50 +0200

csiph-web