aboutsummaryrefslogtreecommitdiffstats
path: root/arch/x86_64/kernel/mce_amd.c
diff options
context:
space:
mode:
authorRohit Seth <rohitseth@google.com>2006-06-26 07:58:17 -0400
committerLinus Torvalds <torvalds@g5.osdl.org>2006-06-26 13:48:19 -0400
commitf3fa8ebc25129bb69929e20b0c84049c39029d8d (patch)
tree56b0df80a38128ca91a2e613d30c594e2e54f7c7 /arch/x86_64/kernel/mce_amd.c
parente465058d55a88feb4c7ecabe63eea7ea7147e206 (diff)
[PATCH] x86_64: moving phys_proc_id and cpu_core_id to cpuinfo_x86
Most of the fields of cpuinfo are defined in cpuinfo_x86 structure. This patch moves the phys_proc_id and cpu_core_id for each processor to cpuinfo_x86 structure as well. Signed-off-by: Rohit Seth <rohitseth@google.com> Signed-off-by: Andi Kleen <ak@suse.de> Signed-off-by: Linus Torvalds <torvalds@osdl.org>
Diffstat (limited to 'arch/x86_64/kernel/mce_amd.c')
-rw-r--r--arch/x86_64/kernel/mce_amd.c10
1 files changed, 5 insertions, 5 deletions
diff --git a/arch/x86_64/kernel/mce_amd.c b/arch/x86_64/kernel/mce_amd.c
index d13b241ad094..86e1e022b20e 100644
--- a/arch/x86_64/kernel/mce_amd.c
+++ b/arch/x86_64/kernel/mce_amd.c
@@ -115,7 +115,7 @@ void __cpuinit mce_amd_feature_init(struct cpuinfo_x86 *c)
115 per_cpu(bank_map, cpu) |= (1 << bank); 115 per_cpu(bank_map, cpu) |= (1 << bank);
116 116
117#ifdef CONFIG_SMP 117#ifdef CONFIG_SMP
118 if (shared_bank[bank] && cpu_core_id[cpu]) 118 if (shared_bank[bank] && c->cpu_core_id)
119 continue; 119 continue;
120#endif 120#endif
121 121
@@ -323,10 +323,10 @@ static __cpuinit int threshold_create_bank(unsigned int cpu, int bank)
323 struct threshold_bank *b = NULL; 323 struct threshold_bank *b = NULL;
324 324
325#ifdef CONFIG_SMP 325#ifdef CONFIG_SMP
326 if (cpu_core_id[cpu] && shared_bank[bank]) { /* symlink */ 326 if (cpu_data[cpu].cpu_core_id && shared_bank[bank]) { /* symlink */
327 char name[16]; 327 char name[16];
328 unsigned lcpu = first_cpu(cpu_core_map[cpu]); 328 unsigned lcpu = first_cpu(cpu_core_map[cpu]);
329 if (cpu_core_id[lcpu]) 329 if (cpu_data[lcpu].cpu_core_id)
330 goto out; /* first core not up yet */ 330 goto out; /* first core not up yet */
331 331
332 b = per_cpu(threshold_banks, lcpu)[bank]; 332 b = per_cpu(threshold_banks, lcpu)[bank];
@@ -434,7 +434,7 @@ static __cpuinit int threshold_create_symlinks(unsigned int cpu)
434 int bank, err = 0; 434 int bank, err = 0;
435 unsigned int lcpu = 0; 435 unsigned int lcpu = 0;
436 436
437 if (cpu_core_id[cpu]) 437 if (cpu_data[cpu].cpu_core_id)
438 return 0; 438 return 0;
439 for_each_cpu_mask(lcpu, cpu_core_map[cpu]) { 439 for_each_cpu_mask(lcpu, cpu_core_map[cpu]) {
440 if (lcpu == cpu) 440 if (lcpu == cpu)
@@ -455,7 +455,7 @@ static __cpuinit void threshold_remove_symlinks(unsigned int cpu)
455{ 455{
456 int bank; 456 int bank;
457 unsigned int lcpu = 0; 457 unsigned int lcpu = 0;
458 if (cpu_core_id[cpu]) 458 if (cpu_data[cpu].cpu_core_id)
459 return; 459 return;
460 for_each_cpu_mask(lcpu, cpu_core_map[cpu]) { 460 for_each_cpu_mask(lcpu, cpu_core_map[cpu]) {
461 if (lcpu == cpu) 461 if (lcpu == cpu)