[PATCH] __init and i386 timers
The i386 timers use a struct timer_opts that has a field init pointing at a __init function. The rest of the struct is not __init. Nothing is wrong, but if we want to avoid having references to init stuff in non-init sections, some reshuffling is needed. The below replaces struct timer_opts { int (*init)(char *override); ... more ... }; by the two structs struct timer_opts { ... more ... }; struct init_time_opts { int (*init)(char *override); struct timer_opts *opts; }; where the second is __initdata.
Showing
Please register or sign in to comment