Commit fe093680 authored by John Levon's avatar John Levon Committed by Linus Torvalds

[PATCH] OProfile: don't assume MSRs stay the same across CPU models

The MSRs might change between CPU models, error out if we haven't met
the CPU before. From Venkatesh Pallipadi
parent 86fcce36
......@@ -332,6 +332,9 @@ static int __init ppro_init(void)
{
__u8 cpu_model = current_cpu_data.x86_model;
if (cpu_model > 0xd)
return 0;
if (cpu_model > 5) {
nmi_ops.cpu_type = "i386/piii";
} else if (cpu_model > 2) {
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment