mirror of
https://github.com/FEX-Emu/linux.git
synced 2024-12-21 08:53:41 +00:00
b4af3f7cf1
Mark i386-specific cpu init functions as __cpuinit. They are all only called from arch/i386/common.c:identify_cpu() that already is marked as __cpuinit. This patch also removes the empty function init_umc(). Signed-off-by: Magnus Damm <magnus@valinux.co.jp> Signed-off-by: Andi Kleen <ak@suse.de>
37 lines
665 B
C
37 lines
665 B
C
#include <linux/kernel.h>
|
|
#include <linux/init.h>
|
|
#include <asm/processor.h>
|
|
#include "cpu.h"
|
|
|
|
/* UMC chips appear to be only either 386 or 486, so no special init takes place.
|
|
*/
|
|
|
|
static struct cpu_dev umc_cpu_dev __cpuinitdata = {
|
|
.c_vendor = "UMC",
|
|
.c_ident = { "UMC UMC UMC" },
|
|
.c_models = {
|
|
{ .vendor = X86_VENDOR_UMC, .family = 4, .model_names =
|
|
{
|
|
[1] = "U5D",
|
|
[2] = "U5S",
|
|
}
|
|
},
|
|
},
|
|
};
|
|
|
|
int __init umc_init_cpu(void)
|
|
{
|
|
cpu_devs[X86_VENDOR_UMC] = &umc_cpu_dev;
|
|
return 0;
|
|
}
|
|
|
|
//early_arch_initcall(umc_init_cpu);
|
|
|
|
static int __init umc_exit_cpu(void)
|
|
{
|
|
cpu_devs[X86_VENDOR_UMC] = NULL;
|
|
return 0;
|
|
}
|
|
|
|
late_initcall(umc_exit_cpu);
|