diff --git a/sys/amd64/amd64/identcpu.c b/sys/amd64/amd64/identcpu.c index 86aa9ba910aa..2d48d8eaafe6 100644 --- a/sys/amd64/amd64/identcpu.c +++ b/sys/amd64/amd64/identcpu.c @@ -294,7 +294,7 @@ printcpuinfo(void) * CPUID, try to look it up in the brand table. */ if (cpu_high > 0 && *cpu_brand == '\0') { - brand_index = cpuid_cpuinfo & CPUID_BRAND_INDEX; + brand_index = cpu_procinfo & CPUID_BRAND_INDEX; if (brand_index <= MAX_BRAND_INDEX && cpu_brandtable[brand_index] != NULL) strcpy(cpu_brand, @@ -649,9 +649,9 @@ printcpuinfo(void) * the number of logical CPU's it contains. */ if (cpu_feature & CPUID_HTT && - (cpuid_cpuinfo & CPUID_HTT_CORES) >> 16 > 1) + (cpu_procinfo & CPUID_HTT_CORES) >> 16 > 1) printf("\n Hyperthreading: %d logical CPUs", - (cpuid_cpuinfo & CPUID_HTT_CORES) >> 16); + (cpu_procinfo & CPUID_HTT_CORES) >> 16); } if (strcmp(cpu_vendor, "AuthenticAMD") == 0 && cpu_exthigh >= 0x80000001) diff --git a/sys/amd64/amd64/initcpu.c b/sys/amd64/amd64/initcpu.c index 9f13eb6f931b..2c4edef89b16 100644 --- a/sys/amd64/amd64/initcpu.c +++ b/sys/amd64/amd64/initcpu.c @@ -82,7 +82,7 @@ int cpu = 0; /* Are we 386, 386sx, 486, etc? */ u_int cpu_id = 0; /* Stepping ID */ u_int cpu_feature = 0; /* Feature flags */ u_int cpu_high = 0; /* Highest arg to CPUID */ -u_int cpuid_cpuinfo = 0; /* HyperThreading Info / Brand Index / CLFUSH */ +u_int cpu_procinfo = 0; /* HyperThreading Info / Brand Index / CLFUSH */ #ifdef CPU_ENABLE_SSE u_int cpu_fxsr = 0; /* SSE enabled */ #endif diff --git a/sys/amd64/amd64/locore.S b/sys/amd64/amd64/locore.S index b9efaf613246..f6ebc88dfa68 100644 --- a/sys/amd64/amd64/locore.S +++ b/sys/amd64/amd64/locore.S @@ -720,7 +720,7 @@ trycpuid: /* Use the `cpuid' instruction. */ movl $1,%eax cpuid # cpuid 1 movl %eax,R(cpu_id) # store cpu_id - movl %ebx,R(cpuid_cpuinfo) # store cpuid_cpuinfo + movl %ebx,R(cpu_procinfo) # store cpu_procinfo movl %edx,R(cpu_feature) # store cpu_feature rorl $8,%eax # extract family type andl $15,%eax diff --git a/sys/amd64/amd64/locore.s b/sys/amd64/amd64/locore.s index b9efaf613246..f6ebc88dfa68 100644 --- a/sys/amd64/amd64/locore.s +++ b/sys/amd64/amd64/locore.s @@ -720,7 +720,7 @@ trycpuid: /* Use the `cpuid' instruction. */ movl $1,%eax cpuid # cpuid 1 movl %eax,R(cpu_id) # store cpu_id - movl %ebx,R(cpuid_cpuinfo) # store cpuid_cpuinfo + movl %ebx,R(cpu_procinfo) # store cpu_procinfo movl %edx,R(cpu_feature) # store cpu_feature rorl $8,%eax # extract family type andl $15,%eax diff --git a/sys/amd64/amd64/mp_machdep.c b/sys/amd64/amd64/mp_machdep.c index 9b24c6f56962..599f18270271 100644 --- a/sys/amd64/amd64/mp_machdep.c +++ b/sys/amd64/amd64/mp_machdep.c @@ -1059,7 +1059,7 @@ mptable_hyperthread_fixup(u_int id_mask) /* Nothing to do if there is no HTT support. */ if ((cpu_feature & CPUID_HTT) == 0) return; - logical_cpus = (cpuid_cpuinfo & CPUID_HTT_CORES) >> 16; + logical_cpus = (cpu_procinfo & CPUID_HTT_CORES) >> 16; if (logical_cpus <= 1) return; diff --git a/sys/amd64/amd64/mptable.c b/sys/amd64/amd64/mptable.c index 9b24c6f56962..599f18270271 100644 --- a/sys/amd64/amd64/mptable.c +++ b/sys/amd64/amd64/mptable.c @@ -1059,7 +1059,7 @@ mptable_hyperthread_fixup(u_int id_mask) /* Nothing to do if there is no HTT support. */ if ((cpu_feature & CPUID_HTT) == 0) return; - logical_cpus = (cpuid_cpuinfo & CPUID_HTT_CORES) >> 16; + logical_cpus = (cpu_procinfo & CPUID_HTT_CORES) >> 16; if (logical_cpus <= 1) return; diff --git a/sys/amd64/include/md_var.h b/sys/amd64/include/md_var.h index 107c90e628c4..0f3922c5a773 100644 --- a/sys/amd64/include/md_var.h +++ b/sys/amd64/include/md_var.h @@ -45,7 +45,7 @@ extern int (*copyout_vector)(const void *kaddr, void *udaddr, size_t len); extern u_int cpu_exthigh; extern u_int cpu_feature; extern u_int cpu_high; -extern u_int cpuid_cpuinfo; +extern u_int cpu_procinfo; extern u_int cpu_id; extern u_int cpu_fxsr; extern char cpu_vendor[]; diff --git a/sys/amd64/include/mptable.h b/sys/amd64/include/mptable.h index 9b24c6f56962..599f18270271 100644 --- a/sys/amd64/include/mptable.h +++ b/sys/amd64/include/mptable.h @@ -1059,7 +1059,7 @@ mptable_hyperthread_fixup(u_int id_mask) /* Nothing to do if there is no HTT support. */ if ((cpu_feature & CPUID_HTT) == 0) return; - logical_cpus = (cpuid_cpuinfo & CPUID_HTT_CORES) >> 16; + logical_cpus = (cpu_procinfo & CPUID_HTT_CORES) >> 16; if (logical_cpus <= 1) return; diff --git a/sys/i386/i386/identcpu.c b/sys/i386/i386/identcpu.c index 86aa9ba910aa..2d48d8eaafe6 100644 --- a/sys/i386/i386/identcpu.c +++ b/sys/i386/i386/identcpu.c @@ -294,7 +294,7 @@ printcpuinfo(void) * CPUID, try to look it up in the brand table. */ if (cpu_high > 0 && *cpu_brand == '\0') { - brand_index = cpuid_cpuinfo & CPUID_BRAND_INDEX; + brand_index = cpu_procinfo & CPUID_BRAND_INDEX; if (brand_index <= MAX_BRAND_INDEX && cpu_brandtable[brand_index] != NULL) strcpy(cpu_brand, @@ -649,9 +649,9 @@ printcpuinfo(void) * the number of logical CPU's it contains. */ if (cpu_feature & CPUID_HTT && - (cpuid_cpuinfo & CPUID_HTT_CORES) >> 16 > 1) + (cpu_procinfo & CPUID_HTT_CORES) >> 16 > 1) printf("\n Hyperthreading: %d logical CPUs", - (cpuid_cpuinfo & CPUID_HTT_CORES) >> 16); + (cpu_procinfo & CPUID_HTT_CORES) >> 16); } if (strcmp(cpu_vendor, "AuthenticAMD") == 0 && cpu_exthigh >= 0x80000001) diff --git a/sys/i386/i386/initcpu.c b/sys/i386/i386/initcpu.c index 9f13eb6f931b..2c4edef89b16 100644 --- a/sys/i386/i386/initcpu.c +++ b/sys/i386/i386/initcpu.c @@ -82,7 +82,7 @@ int cpu = 0; /* Are we 386, 386sx, 486, etc? */ u_int cpu_id = 0; /* Stepping ID */ u_int cpu_feature = 0; /* Feature flags */ u_int cpu_high = 0; /* Highest arg to CPUID */ -u_int cpuid_cpuinfo = 0; /* HyperThreading Info / Brand Index / CLFUSH */ +u_int cpu_procinfo = 0; /* HyperThreading Info / Brand Index / CLFUSH */ #ifdef CPU_ENABLE_SSE u_int cpu_fxsr = 0; /* SSE enabled */ #endif diff --git a/sys/i386/i386/locore.s b/sys/i386/i386/locore.s index b9efaf613246..f6ebc88dfa68 100644 --- a/sys/i386/i386/locore.s +++ b/sys/i386/i386/locore.s @@ -720,7 +720,7 @@ trycpuid: /* Use the `cpuid' instruction. */ movl $1,%eax cpuid # cpuid 1 movl %eax,R(cpu_id) # store cpu_id - movl %ebx,R(cpuid_cpuinfo) # store cpuid_cpuinfo + movl %ebx,R(cpu_procinfo) # store cpu_procinfo movl %edx,R(cpu_feature) # store cpu_feature rorl $8,%eax # extract family type andl $15,%eax diff --git a/sys/i386/i386/mp_machdep.c b/sys/i386/i386/mp_machdep.c index 9b24c6f56962..599f18270271 100644 --- a/sys/i386/i386/mp_machdep.c +++ b/sys/i386/i386/mp_machdep.c @@ -1059,7 +1059,7 @@ mptable_hyperthread_fixup(u_int id_mask) /* Nothing to do if there is no HTT support. */ if ((cpu_feature & CPUID_HTT) == 0) return; - logical_cpus = (cpuid_cpuinfo & CPUID_HTT_CORES) >> 16; + logical_cpus = (cpu_procinfo & CPUID_HTT_CORES) >> 16; if (logical_cpus <= 1) return; diff --git a/sys/i386/i386/mptable.c b/sys/i386/i386/mptable.c index 9b24c6f56962..599f18270271 100644 --- a/sys/i386/i386/mptable.c +++ b/sys/i386/i386/mptable.c @@ -1059,7 +1059,7 @@ mptable_hyperthread_fixup(u_int id_mask) /* Nothing to do if there is no HTT support. */ if ((cpu_feature & CPUID_HTT) == 0) return; - logical_cpus = (cpuid_cpuinfo & CPUID_HTT_CORES) >> 16; + logical_cpus = (cpu_procinfo & CPUID_HTT_CORES) >> 16; if (logical_cpus <= 1) return; diff --git a/sys/i386/include/md_var.h b/sys/i386/include/md_var.h index 107c90e628c4..0f3922c5a773 100644 --- a/sys/i386/include/md_var.h +++ b/sys/i386/include/md_var.h @@ -45,7 +45,7 @@ extern int (*copyout_vector)(const void *kaddr, void *udaddr, size_t len); extern u_int cpu_exthigh; extern u_int cpu_feature; extern u_int cpu_high; -extern u_int cpuid_cpuinfo; +extern u_int cpu_procinfo; extern u_int cpu_id; extern u_int cpu_fxsr; extern char cpu_vendor[]; diff --git a/sys/i386/include/mptable.h b/sys/i386/include/mptable.h index 9b24c6f56962..599f18270271 100644 --- a/sys/i386/include/mptable.h +++ b/sys/i386/include/mptable.h @@ -1059,7 +1059,7 @@ mptable_hyperthread_fixup(u_int id_mask) /* Nothing to do if there is no HTT support. */ if ((cpu_feature & CPUID_HTT) == 0) return; - logical_cpus = (cpuid_cpuinfo & CPUID_HTT_CORES) >> 16; + logical_cpus = (cpu_procinfo & CPUID_HTT_CORES) >> 16; if (logical_cpus <= 1) return;