2005-04-16 22:20:36 +00:00
|
|
|
#include <linux/kernel.h>
|
|
|
|
#include <linux/init.h>
|
|
|
|
#include <asm/processor.h>
|
|
|
|
#include "cpu.h"
|
|
|
|
|
2008-02-20 23:18:34 +00:00
|
|
|
/*
|
|
|
|
* UMC chips appear to be only either 386 or 486,
|
|
|
|
* so no special init takes place.
|
2005-04-16 22:20:36 +00:00
|
|
|
*/
|
|
|
|
|
2006-09-26 08:52:36 +00:00
|
|
|
static struct cpu_dev umc_cpu_dev __cpuinitdata = {
|
2005-04-16 22:20:36 +00:00
|
|
|
.c_vendor = "UMC",
|
2008-02-20 23:18:34 +00:00
|
|
|
.c_ident = { "UMC UMC UMC" },
|
2005-04-16 22:20:36 +00:00
|
|
|
.c_models = {
|
|
|
|
{ .vendor = X86_VENDOR_UMC, .family = 4, .model_names =
|
2008-02-20 23:18:34 +00:00
|
|
|
{
|
|
|
|
[1] = "U5D",
|
|
|
|
[2] = "U5S",
|
2005-04-16 22:20:36 +00:00
|
|
|
}
|
|
|
|
},
|
|
|
|
},
|
2008-09-04 19:09:45 +00:00
|
|
|
.c_x86_vendor = X86_VENDOR_UMC,
|
2005-04-16 22:20:36 +00:00
|
|
|
};
|
|
|
|
|
2008-09-04 19:09:45 +00:00
|
|
|
cpu_dev_register(umc_cpu_dev);
|
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-02-15 11:00:23 +00:00
|
|
|
|