aboutsummaryrefslogtreecommitdiff
path: root/sys/amd64
diff options
context:
space:
mode:
authorJohn Baldwin <jhb@FreeBSD.org>2003-01-22 17:54:12 +0000
committerJohn Baldwin <jhb@FreeBSD.org>2003-01-22 17:54:12 +0000
commitcaf319763628ab3d926ab14266d60cceff2bedb2 (patch)
tree93939431b4280dc791c9f9e96bebeaa42d0ea439 /sys/amd64
parent07350d12cf7bf4fed0da1bea79daa4779f132e6e (diff)
downloadsrc-caf319763628ab3d926ab14266d60cceff2bedb2.tar.gz
src-caf319763628ab3d926ab14266d60cceff2bedb2.zip
Rename cpuid_cpuinfo to cpu_procinfo. bde requested that I rename this
variable to something in the cpu_* namespace since that's what all the other cpuid variables were named and cpu_procinfo is what I came up with. Requested by: bde
Notes
Notes: svn path=/head/; revision=109696
Diffstat (limited to 'sys/amd64')
-rw-r--r--sys/amd64/amd64/identcpu.c6
-rw-r--r--sys/amd64/amd64/initcpu.c2
-rw-r--r--sys/amd64/amd64/locore.S2
-rw-r--r--sys/amd64/amd64/locore.s2
-rw-r--r--sys/amd64/amd64/mp_machdep.c2
-rw-r--r--sys/amd64/amd64/mptable.c2
-rw-r--r--sys/amd64/include/md_var.h2
-rw-r--r--sys/amd64/include/mptable.h2
8 files changed, 10 insertions, 10 deletions
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;