diff options
Diffstat (limited to 'arch/x86/kernel/cpu/common.c')
-rw-r--r-- | arch/x86/kernel/cpu/common.c | 44 |
1 files changed, 22 insertions, 22 deletions
diff --git a/arch/x86/kernel/cpu/common.c b/arch/x86/kernel/cpu/common.c index 37830de8f60a..81cf716f6f97 100644 --- a/arch/x86/kernel/cpu/common.c +++ b/arch/x86/kernel/cpu/common.c | |||
@@ -228,7 +228,7 @@ static void squash_the_stupid_serial_number(struct cpuinfo_x86 *c) | |||
228 | lo |= 0x200000; | 228 | lo |= 0x200000; |
229 | wrmsr(MSR_IA32_BBL_CR_CTL, lo, hi); | 229 | wrmsr(MSR_IA32_BBL_CR_CTL, lo, hi); |
230 | 230 | ||
231 | printk(KERN_NOTICE "CPU serial number disabled.\n"); | 231 | pr_notice("CPU serial number disabled.\n"); |
232 | clear_cpu_cap(c, X86_FEATURE_PN); | 232 | clear_cpu_cap(c, X86_FEATURE_PN); |
233 | 233 | ||
234 | /* Disabling the serial number may affect the cpuid level */ | 234 | /* Disabling the serial number may affect the cpuid level */ |
@@ -329,9 +329,8 @@ static void filter_cpuid_features(struct cpuinfo_x86 *c, bool warn) | |||
329 | if (!warn) | 329 | if (!warn) |
330 | continue; | 330 | continue; |
331 | 331 | ||
332 | printk(KERN_WARNING | 332 | pr_warn("CPU: CPU feature " X86_CAP_FMT " disabled, no CPUID level 0x%x\n", |
333 | "CPU: CPU feature " X86_CAP_FMT " disabled, no CPUID level 0x%x\n", | 333 | x86_cap_flag(df->feature), df->level); |
334 | x86_cap_flag(df->feature), df->level); | ||
335 | } | 334 | } |
336 | } | 335 | } |
337 | 336 | ||
@@ -510,7 +509,7 @@ void detect_ht(struct cpuinfo_x86 *c) | |||
510 | smp_num_siblings = (ebx & 0xff0000) >> 16; | 509 | smp_num_siblings = (ebx & 0xff0000) >> 16; |
511 | 510 | ||
512 | if (smp_num_siblings == 1) { | 511 | if (smp_num_siblings == 1) { |
513 | printk_once(KERN_INFO "CPU0: Hyper-Threading is disabled\n"); | 512 | pr_info_once("CPU0: Hyper-Threading is disabled\n"); |
514 | goto out; | 513 | goto out; |
515 | } | 514 | } |
516 | 515 | ||
@@ -531,10 +530,10 @@ void detect_ht(struct cpuinfo_x86 *c) | |||
531 | 530 | ||
532 | out: | 531 | out: |
533 | if (!printed && (c->x86_max_cores * smp_num_siblings) > 1) { | 532 | if (!printed && (c->x86_max_cores * smp_num_siblings) > 1) { |
534 | printk(KERN_INFO "CPU: Physical Processor ID: %d\n", | 533 | pr_info("CPU: Physical Processor ID: %d\n", |
535 | c->phys_proc_id); | 534 | c->phys_proc_id); |
536 | printk(KERN_INFO "CPU: Processor Core ID: %d\n", | 535 | pr_info("CPU: Processor Core ID: %d\n", |
537 | c->cpu_core_id); | 536 | c->cpu_core_id); |
538 | printed = 1; | 537 | printed = 1; |
539 | } | 538 | } |
540 | #endif | 539 | #endif |
@@ -559,9 +558,8 @@ static void get_cpu_vendor(struct cpuinfo_x86 *c) | |||
559 | } | 558 | } |
560 | } | 559 | } |
561 | 560 | ||
562 | printk_once(KERN_ERR | 561 | pr_err_once("CPU: vendor_id '%s' unknown, using generic init.\n" \ |
563 | "CPU: vendor_id '%s' unknown, using generic init.\n" \ | 562 | "CPU: Your system may be unstable.\n", v); |
564 | "CPU: Your system may be unstable.\n", v); | ||
565 | 563 | ||
566 | c->x86_vendor = X86_VENDOR_UNKNOWN; | 564 | c->x86_vendor = X86_VENDOR_UNKNOWN; |
567 | this_cpu = &default_cpu; | 565 | this_cpu = &default_cpu; |
@@ -760,7 +758,7 @@ void __init early_cpu_init(void) | |||
760 | int count = 0; | 758 | int count = 0; |
761 | 759 | ||
762 | #ifdef CONFIG_PROCESSOR_SELECT | 760 | #ifdef CONFIG_PROCESSOR_SELECT |
763 | printk(KERN_INFO "KERNEL supported cpus:\n"); | 761 | pr_info("KERNEL supported cpus:\n"); |
764 | #endif | 762 | #endif |
765 | 763 | ||
766 | for (cdev = __x86_cpu_dev_start; cdev < __x86_cpu_dev_end; cdev++) { | 764 | for (cdev = __x86_cpu_dev_start; cdev < __x86_cpu_dev_end; cdev++) { |
@@ -778,7 +776,7 @@ void __init early_cpu_init(void) | |||
778 | for (j = 0; j < 2; j++) { | 776 | for (j = 0; j < 2; j++) { |
779 | if (!cpudev->c_ident[j]) | 777 | if (!cpudev->c_ident[j]) |
780 | continue; | 778 | continue; |
781 | printk(KERN_INFO " %s %s\n", cpudev->c_vendor, | 779 | pr_info(" %s %s\n", cpudev->c_vendor, |
782 | cpudev->c_ident[j]); | 780 | cpudev->c_ident[j]); |
783 | } | 781 | } |
784 | } | 782 | } |
@@ -977,6 +975,8 @@ static void identify_cpu(struct cpuinfo_x86 *c) | |||
977 | #ifdef CONFIG_NUMA | 975 | #ifdef CONFIG_NUMA |
978 | numa_add_cpu(smp_processor_id()); | 976 | numa_add_cpu(smp_processor_id()); |
979 | #endif | 977 | #endif |
978 | /* The boot/hotplug time assigment got cleared, restore it */ | ||
979 | c->logical_proc_id = topology_phys_to_logical_pkg(c->phys_proc_id); | ||
980 | } | 980 | } |
981 | 981 | ||
982 | /* | 982 | /* |
@@ -1061,7 +1061,7 @@ static void __print_cpu_msr(void) | |||
1061 | for (index = index_min; index < index_max; index++) { | 1061 | for (index = index_min; index < index_max; index++) { |
1062 | if (rdmsrl_safe(index, &val)) | 1062 | if (rdmsrl_safe(index, &val)) |
1063 | continue; | 1063 | continue; |
1064 | printk(KERN_INFO " MSR%08x: %016llx\n", index, val); | 1064 | pr_info(" MSR%08x: %016llx\n", index, val); |
1065 | } | 1065 | } |
1066 | } | 1066 | } |
1067 | } | 1067 | } |
@@ -1100,19 +1100,19 @@ void print_cpu_info(struct cpuinfo_x86 *c) | |||
1100 | } | 1100 | } |
1101 | 1101 | ||
1102 | if (vendor && !strstr(c->x86_model_id, vendor)) | 1102 | if (vendor && !strstr(c->x86_model_id, vendor)) |
1103 | printk(KERN_CONT "%s ", vendor); | 1103 | pr_cont("%s ", vendor); |
1104 | 1104 | ||
1105 | if (c->x86_model_id[0]) | 1105 | if (c->x86_model_id[0]) |
1106 | printk(KERN_CONT "%s", c->x86_model_id); | 1106 | pr_cont("%s", c->x86_model_id); |
1107 | else | 1107 | else |
1108 | printk(KERN_CONT "%d86", c->x86); | 1108 | pr_cont("%d86", c->x86); |
1109 | 1109 | ||
1110 | printk(KERN_CONT " (family: 0x%x, model: 0x%x", c->x86, c->x86_model); | 1110 | pr_cont(" (family: 0x%x, model: 0x%x", c->x86, c->x86_model); |
1111 | 1111 | ||
1112 | if (c->x86_mask || c->cpuid_level >= 0) | 1112 | if (c->x86_mask || c->cpuid_level >= 0) |
1113 | printk(KERN_CONT ", stepping: 0x%x)\n", c->x86_mask); | 1113 | pr_cont(", stepping: 0x%x)\n", c->x86_mask); |
1114 | else | 1114 | else |
1115 | printk(KERN_CONT ")\n"); | 1115 | pr_cont(")\n"); |
1116 | 1116 | ||
1117 | print_cpu_msr(c); | 1117 | print_cpu_msr(c); |
1118 | } | 1118 | } |
@@ -1438,7 +1438,7 @@ void cpu_init(void) | |||
1438 | 1438 | ||
1439 | show_ucode_info_early(); | 1439 | show_ucode_info_early(); |
1440 | 1440 | ||
1441 | printk(KERN_INFO "Initializing CPU#%d\n", cpu); | 1441 | pr_info("Initializing CPU#%d\n", cpu); |
1442 | 1442 | ||
1443 | if (cpu_feature_enabled(X86_FEATURE_VME) || | 1443 | if (cpu_feature_enabled(X86_FEATURE_VME) || |
1444 | cpu_has_tsc || | 1444 | cpu_has_tsc || |