Re: [PATCH 0/4] __cpuinitconst and __devinitconst

!MAILaRCHIVE_VOTE_RePLACE
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]
To: Jan Beulich <jbeulich@...>
Cc: <linux-kernel@...>
Date: Friday, January 11, 2008 - 3:44 pm

Hi Jan.

On Fri, Jan 11, 2008 at 08:55:29AM +0000, Jan Beulich wrote:

How about a slightly diffrent approach...
Consider
__cpuinitconst => function is placed in section .init.const.text
__devinitconst => function is placed in section .init.const.text

Then we in the linker scrip can distingush between the two
and locate the sections as appropriate.

This will require some updates to modpost but are align with an
idea I have had for a while.
All of the following should have dedicated sections associated
unconditionally:

__init
__cpuinit
__meminit
__initdata
__cpuinitdata
__meminitdata

And then in the linker script we decide what to do with the section.
In the built-in case we put them in the "to-be-discarded" section.
In the module case we put them as today.

The primary tasks needed to accomplish this is:
1) Update all arch linker scripts (and some of them looks ugly)
2) Teach modpost about the new sections

If you following the suggestion above this is a simple step
in this direction which would be good.

Comments?

	Sam
--
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]

Messages in current thread:
[PATCH 0/4] __cpuinitconst and __devinitconst, Jan Beulich, (Fri Jan 11, 4:55 am)
Re: [PATCH 0/4] __cpuinitconst and __devinitconst, Sam Ravnborg, (Fri Jan 11, 3:44 pm)
Re: [PATCH 0/4] __cpuinitconst and __devinitconst, Sam Ravnborg, (Sat Jan 12, 4:56 pm)
Re: [PATCH 0/4] __cpuinitconst and __devinitconst, Sam Ravnborg, (Sun Jan 13, 3:30 am)
Re: [PATCH 0/4] __cpuinitconst and __devinitconst, Sam Ravnborg, (Sun Jan 13, 5:42 pm)
Re: [PATCH 0/4] __cpuinitconst and __devinitconst, Jan Beulich, (Mon Jan 14, 4:33 am)
Re: [PATCH 0/4] __cpuinitconst and __devinitconst, Sam Ravnborg, (Mon Jan 14, 5:17 am)
Re: [PATCH 0/4] __cpuinitconst and __devinitconst, Jan Beulich, (Mon Jan 14, 5:25 am)
Re: [PATCH 0/4] __cpuinitconst and __devinitconst, Sam Ravnborg, (Mon Jan 14, 5:43 am)