Skip to content
Snippets Groups Projects
Commit 0b8b8078 authored by Yinghai Lu's avatar Yinghai Lu Committed by Ingo Molnar
Browse files

x86: Fix excessive MSR print out when show_msr is not specified


Dave found:

| During bootup, I now have 162 messages like this..
| [    0.227346]  MSR0000001b: 00000000fee00900
| [    0.227465]  MSR00000021: 0000000000000001
| [    0.227584]  MSR0000002a: 00000000c1c81400
|
| commit 21c3fcf3 looks suspect.
| It claims that it will only print these out if show_msr= is
| passed, but that doesn't seem to be the case.

Fix it by changing to the version that checks the index.

Reported-and-tested-by: default avatarDave Jones <davej@redhat.com>
Signed-off-by: default avatarYinghai Lu <yinghai@kernel.org>
Link: http://lkml.kernel.org/r/1332477103-4595-1-git-send-email-yinghai@kernel.org


Signed-off-by: default avatarIngo Molnar <mingo@kernel.org>
parent 29a2e283
No related branches found
No related tags found
No related merge requests found
...@@ -998,7 +998,7 @@ void __cpuinit print_cpu_info(struct cpuinfo_x86 *c) ...@@ -998,7 +998,7 @@ void __cpuinit print_cpu_info(struct cpuinfo_x86 *c)
else else
printk(KERN_CONT "\n"); printk(KERN_CONT "\n");
__print_cpu_msr(); print_cpu_msr(c);
} }
void __cpuinit print_cpu_msr(struct cpuinfo_x86 *c) void __cpuinit print_cpu_msr(struct cpuinfo_x86 *c)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment