mirror of
https://github.com/AuxXxilium/linux_dsm_epyc7002.git
synced 2024-12-01 13:26:45 +07:00
10a434fcb2
1. add c_x86_vendor into cpu_dev 2. change cpu_devs to static 3. check c_x86_vendor before put that cpu_dev into array 4. remove alignment for 64bit 5. order the sequence in cpu_devs according to link sequence... so could put intel at first, then amd... Signed-off-by: Yinghai Lu <yhlu.kernel@gmail.com> Signed-off-by: Ingo Molnar <mingo@elte.hu>
27 lines
490 B
C
27 lines
490 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",
|
|
}
|
|
},
|
|
},
|
|
.c_x86_vendor = X86_VENDOR_UMC,
|
|
};
|
|
|
|
cpu_dev_register(umc_cpu_dev);
|
|
|