diff options
-rw-r--r-- | arch/x86/include/asm/processor.h | 1 | ||||
-rw-r--r-- | arch/x86/kernel/cpu/common.c | 14 | ||||
-rw-r--r-- | arch/x86/kernel/smpboot.c | 5 |
3 files changed, 11 insertions, 9 deletions
diff --git a/arch/x86/include/asm/processor.h b/arch/x86/include/asm/processor.h index aa9088c26931..8bb062bbcbec 100644 --- a/arch/x86/include/asm/processor.h +++ b/arch/x86/include/asm/processor.h | |||
@@ -162,6 +162,7 @@ extern void early_cpu_init(void); | |||
162 | extern void identify_boot_cpu(void); | 162 | extern void identify_boot_cpu(void); |
163 | extern void identify_secondary_cpu(struct cpuinfo_x86 *); | 163 | extern void identify_secondary_cpu(struct cpuinfo_x86 *); |
164 | extern void print_cpu_info(struct cpuinfo_x86 *); | 164 | extern void print_cpu_info(struct cpuinfo_x86 *); |
165 | void print_cpu_msr(struct cpuinfo_x86 *); | ||
165 | extern void init_scattered_cpuid_features(struct cpuinfo_x86 *c); | 166 | extern void init_scattered_cpuid_features(struct cpuinfo_x86 *c); |
166 | extern unsigned int init_intel_cacheinfo(struct cpuinfo_x86 *c); | 167 | extern unsigned int init_intel_cacheinfo(struct cpuinfo_x86 *c); |
167 | extern unsigned short num_cache_leaves; | 168 | extern unsigned short num_cache_leaves; |
diff --git a/arch/x86/kernel/cpu/common.c b/arch/x86/kernel/cpu/common.c index d43cad74f166..8b6a3bb57d8e 100644 --- a/arch/x86/kernel/cpu/common.c +++ b/arch/x86/kernel/cpu/common.c | |||
@@ -933,7 +933,7 @@ static const struct msr_range msr_range_array[] __cpuinitconst = { | |||
933 | { 0xc0011000, 0xc001103b}, | 933 | { 0xc0011000, 0xc001103b}, |
934 | }; | 934 | }; |
935 | 935 | ||
936 | static void __cpuinit print_cpu_msr(void) | 936 | static void __cpuinit __print_cpu_msr(void) |
937 | { | 937 | { |
938 | unsigned index_min, index_max; | 938 | unsigned index_min, index_max; |
939 | unsigned index; | 939 | unsigned index; |
@@ -997,13 +997,13 @@ void __cpuinit print_cpu_info(struct cpuinfo_x86 *c) | |||
997 | else | 997 | else |
998 | printk(KERN_CONT "\n"); | 998 | printk(KERN_CONT "\n"); |
999 | 999 | ||
1000 | #ifdef CONFIG_SMP | 1000 | __print_cpu_msr(); |
1001 | } | ||
1002 | |||
1003 | void __cpuinit print_cpu_msr(struct cpuinfo_x86 *c) | ||
1004 | { | ||
1001 | if (c->cpu_index < show_msr) | 1005 | if (c->cpu_index < show_msr) |
1002 | print_cpu_msr(); | 1006 | __print_cpu_msr(); |
1003 | #else | ||
1004 | if (show_msr) | ||
1005 | print_cpu_msr(); | ||
1006 | #endif | ||
1007 | } | 1007 | } |
1008 | 1008 | ||
1009 | static __init int setup_disablecpuid(char *arg) | 1009 | static __init int setup_disablecpuid(char *arg) |
diff --git a/arch/x86/kernel/smpboot.c b/arch/x86/kernel/smpboot.c index 66d250c00d11..257049d7c657 100644 --- a/arch/x86/kernel/smpboot.c +++ b/arch/x86/kernel/smpboot.c | |||
@@ -791,9 +791,10 @@ do_rest: | |||
791 | schedule(); | 791 | schedule(); |
792 | } | 792 | } |
793 | 793 | ||
794 | if (cpumask_test_cpu(cpu, cpu_callin_mask)) | 794 | if (cpumask_test_cpu(cpu, cpu_callin_mask)) { |
795 | print_cpu_msr(&cpu_data(cpu)); | ||
795 | pr_debug("CPU%d: has booted.\n", cpu); | 796 | pr_debug("CPU%d: has booted.\n", cpu); |
796 | else { | 797 | } else { |
797 | boot_error = 1; | 798 | boot_error = 1; |
798 | if (*(volatile u32 *)TRAMPOLINE_SYM(trampoline_status) | 799 | if (*(volatile u32 *)TRAMPOLINE_SYM(trampoline_status) |
799 | == 0xA5A5A5A5) | 800 | == 0xA5A5A5A5) |