diff options
-rw-r--r-- | arch/i386/kernel/cpu/cpufreq/speedstep-centrino.c | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/arch/i386/kernel/cpu/cpufreq/speedstep-centrino.c b/arch/i386/kernel/cpu/cpufreq/speedstep-centrino.c index d2d9caf00a2f..5113e9231634 100644 --- a/arch/i386/kernel/cpu/cpufreq/speedstep-centrino.c +++ b/arch/i386/kernel/cpu/cpufreq/speedstep-centrino.c | |||
@@ -36,6 +36,7 @@ | |||
36 | 36 | ||
37 | #define dprintk(msg...) cpufreq_debug_printk(CPUFREQ_DEBUG_DRIVER, "speedstep-centrino", msg) | 37 | #define dprintk(msg...) cpufreq_debug_printk(CPUFREQ_DEBUG_DRIVER, "speedstep-centrino", msg) |
38 | 38 | ||
39 | #define INTEL_MSR_RANGE (0xffff) | ||
39 | 40 | ||
40 | struct cpu_id | 41 | struct cpu_id |
41 | { | 42 | { |
@@ -463,8 +464,9 @@ static int centrino_cpu_init_acpi(struct cpufreq_policy *policy) | |||
463 | } | 464 | } |
464 | 465 | ||
465 | for (i=0; i<p->state_count; i++) { | 466 | for (i=0; i<p->state_count; i++) { |
466 | if (p->states[i].control != p->states[i].status) { | 467 | if ((p->states[i].control & INTEL_MSR_RANGE) != |
467 | dprintk("Different control (%llu) and status values (%llu)\n", | 468 | (p->states[i].status & INTEL_MSR_RANGE)) { |
469 | dprintk("Different MSR bits in control (%llu) and status (%llu)\n", | ||
468 | p->states[i].control, p->states[i].status); | 470 | p->states[i].control, p->states[i].status); |
469 | result = -EINVAL; | 471 | result = -EINVAL; |
470 | goto err_unreg; | 472 | goto err_unreg; |
@@ -500,7 +502,7 @@ static int centrino_cpu_init_acpi(struct cpufreq_policy *policy) | |||
500 | } | 502 | } |
501 | 503 | ||
502 | for (i=0; i<p->state_count; i++) { | 504 | for (i=0; i<p->state_count; i++) { |
503 | centrino_model[cpu]->op_points[i].index = p->states[i].control; | 505 | centrino_model[cpu]->op_points[i].index = p->states[i].control & INTEL_MSR_RANGE; |
504 | centrino_model[cpu]->op_points[i].frequency = p->states[i].core_frequency * 1000; | 506 | centrino_model[cpu]->op_points[i].frequency = p->states[i].core_frequency * 1000; |
505 | dprintk("adding state %i with frequency %u and control value %04x\n", | 507 | dprintk("adding state %i with frequency %u and control value %04x\n", |
506 | i, centrino_model[cpu]->op_points[i].frequency, centrino_model[cpu]->op_points[i].index); | 508 | i, centrino_model[cpu]->op_points[i].frequency, centrino_model[cpu]->op_points[i].index); |