MFi386: move cpu_nameclass struct next to its only consumer
This commit is contained in:
parent
ba8b26f960
commit
9248fc7bc0
@ -90,7 +90,10 @@ SYSCTL_INT(_hw, OID_AUTO, clockrate, CTLFLAG_RD,
|
||||
|
||||
static char cpu_brand[48];
|
||||
|
||||
static struct cpu_nameclass amd64_cpus[] = {
|
||||
static struct {
|
||||
char *cpu_name;
|
||||
int cpu_class;
|
||||
} amd64_cpus[] = {
|
||||
{ "Clawhammer", CPUCLASS_K8 }, /* CPU_CLAWHAMMER */
|
||||
{ "Sledgehammer", CPUCLASS_K8 }, /* CPU_SLEDGEHAMMER */
|
||||
};
|
||||
|
@ -44,11 +44,6 @@
|
||||
#define CPU_SLEDGEHAMMER 2 /* AMD Sledgehammer */
|
||||
|
||||
#ifndef LOCORE
|
||||
struct cpu_nameclass {
|
||||
char *cpu_name;
|
||||
int cpu_class;
|
||||
};
|
||||
|
||||
extern int cpu;
|
||||
extern int cpu_class;
|
||||
#endif
|
||||
|
Loading…
Reference in New Issue
Block a user