[PATCH] [POWERPC] Add machine initcall macros

Benjamin Herrenschmidt benh at kernel.crashing.org
Sat Dec 1 18:26:01 EST 2007


On Sat, 2007-12-01 at 18:11 +1100, Michael Ellerman wrote:
> I can't think at the moment, it's Saturday, but is there some way we
> could just make it a wrapper macro, so we don't need to redefine - and
> keep in sync - all the different init call types?
> 
> So the usage would look something like:
> 
> arch_initcall(machine_initcall(foo, bar));
> 
> or 
> 
> machine_initcall(foo, arch_initcall(bar));

Not really. I'd like to turn that into magic ELF sections ultimately, in
which case your trick above wouldn't work... besides, it's clumsy :-)

Ben.





More information about the Linuxppc-dev mailing list