Files
linux-apfs/arch/x86/kernel
Thomas Petazzoni 03ae5768b6 x86: use ELF section to list CPU vendor specific code
Replace the hardcoded list of initialization functions for each CPU
vendor by a list in an ELF section, which is read at initialization in
arch/x86/kernel/cpu/cpu.c to fill the cpu_devs[] array. The ELF
section, named .x86cpuvendor.init, is reclaimed after boot, and
contains entries of type "struct cpu_vendor_dev" which associates a
vendor number with a pointer to a "struct cpu_dev" structure.

This first modification allows to remove all the VENDOR_init_cpu()
functions.

This patch also removes the hardcoded calls to early_init_amd() and
early_init_intel(). Instead, we add a "c_early_init" member to the
cpu_dev structure, which is then called if not NULL by the generic CPU
initialization code. Unfortunately, in early_cpu_detect(), this_cpu is
not yet set, so we have to use the cpu_devs[] array directly.

This patch is part of the Linux Tiny project, and is needed for
further patch that will allow to disable compilation of unused CPU
support code.

Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
Signed-off-by: Ingo Molnar <mingo@elte.hu>
Signed-off-by: Thomas Gleixner <tglx@linutronix.de>
2008-04-17 17:40:47 +02:00
..
2008-01-30 13:33:14 +01:00
2008-01-30 13:31:31 +01:00
2008-01-31 22:05:47 +01:00
2008-02-19 16:18:28 +01:00
2008-01-30 13:31:19 +01:00
2008-02-19 16:18:28 +01:00
2008-02-19 16:18:29 +01:00
2008-04-17 17:40:45 +02:00
2008-03-21 17:06:15 +01:00
2008-04-04 18:36:49 +02:00
2008-03-07 16:39:14 +01:00
2008-02-13 16:20:35 +01:00
2008-03-26 22:23:40 +01:00
2008-01-30 13:33:10 +01:00
2008-04-17 17:40:47 +02:00
2008-01-30 13:33:19 +01:00
2008-04-10 15:38:29 -07:00
2008-04-17 17:40:47 +02:00
2008-04-03 15:42:43 -07:00
2008-02-08 09:22:29 -08:00
2008-01-30 13:31:52 +01:00
2008-02-06 22:39:44 +01:00
2008-01-30 13:31:42 +01:00
2008-02-04 16:47:54 +01:00
2008-04-17 17:40:47 +02:00
2008-01-30 13:31:10 +01:00