• Andries E. Brouwer's avatar
    [PATCH] __init and i386 timers · 3ba05012
    Andries E. Brouwer authored
    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.
    3ba05012
timer_cyclone.c 6.95 KB