* Thomas Petazzoni <thomas.petazzoni@xxxxxxxxxxxxxxxxxx> wrote:
Le Mon, 11 Feb 2008 16:54:30 -0800,
"H. Peter Anvin" <hpa@xxxxxxxxx> a écrit :
b) would be my first choice, and yes, it would be a good thing toYou'll find below a tentative patch that implements this. Tuple (vendor, pointer to cpu_dev structure) are stored in a x86cpuvendor.init section of the kernel, which is then read by the generic CPU code in arch/x86/kernel/cpu/common.c to fill the cpu_devs[] function.
have a generalized mechanism for this. For the registrant, it's
pretty easy: just add a macro that adds a pointer to a named
section. We then need a way to get the base address and length of
each such section in order to be able to execute each function in
sequence.
thanks, i've picked this up into x86.git. It all looks much cleaner and much more maintainable now. Peter, any objections?