Commit 529980c8b0b04e8a3f6606cdc156f1f81a5d68cd

Authored by Linus Torvalds

Merge master.kernel.org:/pub/scm/linux/kernel/git/davej/cpufreq

Showing 4 changed files Side-by-side Diff

arch/i386/kernel/cpu/cpufreq/longhaul.c
... ... @@ -467,11 +467,11 @@
467 467 }
468 468  
469 469 if (vrmrev==0) {
470   - dprintk ("VRM 8.5 \n");
  470 + dprintk ("VRM 8.5\n");
471 471 memcpy (voltage_table, vrm85scales, sizeof(voltage_table));
472 472 numvscales = (voltage_table[maxvid]-voltage_table[minvid])/25;
473 473 } else {
474   - dprintk ("Mobile VRM \n");
  474 + dprintk ("Mobile VRM\n");
475 475 memcpy (voltage_table, mobilevrmscales, sizeof(voltage_table));
476 476 numvscales = (voltage_table[maxvid]-voltage_table[minvid])/5;
477 477 }
arch/i386/kernel/cpu/cpufreq/speedstep-centrino.c
... ... @@ -259,7 +259,7 @@
259 259  
260 260 if (model->op_points == NULL) {
261 261 /* Matched a non-match */
262   - dprintk(KERN_INFO PFX "no table support for CPU model \"%s\": \n",
  262 + dprintk(KERN_INFO PFX "no table support for CPU model \"%s\"\n",
263 263 cpu->x86_model_id);
264 264 #ifndef CONFIG_X86_SPEEDSTEP_CENTRINO_ACPI
265 265 dprintk(KERN_INFO PFX "try compiling with CONFIG_X86_SPEEDSTEP_CENTRINO_ACPI enabled\n");
... ... @@ -402,7 +402,7 @@
402 402  
403 403 for (i=0; i<p.state_count; i++) {
404 404 if (p.states[i].control != p.states[i].status) {
405   - dprintk("Different control (%x) and status values (%x)\n",
  405 + dprintk("Different control (%llu) and status values (%llu)\n",
406 406 p.states[i].control, p.states[i].status);
407 407 result = -EINVAL;
408 408 goto err_unreg;
... ... @@ -415,7 +415,7 @@
415 415 }
416 416  
417 417 if (p.states[i].core_frequency > p.states[0].core_frequency) {
418   - dprintk("P%u has larger frequency (%u) than P0 (%u), skipping\n", i,
  418 + dprintk("P%u has larger frequency (%llu) than P0 (%llu), skipping\n", i,
419 419 p.states[i].core_frequency, p.states[0].core_frequency);
420 420 p.states[i].core_frequency = 0;
421 421 continue;
... ... @@ -498,13 +498,6 @@
498 498 if (cpu->x86_vendor != X86_VENDOR_INTEL || !cpu_has(cpu, X86_FEATURE_EST))
499 499 return -ENODEV;
500 500  
501   - for (i = 0; i < N_IDS; i++)
502   - if (centrino_verify_cpu_id(cpu, &cpu_ids[i]))
503   - break;
504   -
505   - if (i != N_IDS)
506   - centrino_cpu[policy->cpu] = &cpu_ids[i];
507   -
508 501 if (is_const_loops_cpu(policy->cpu)) {
509 502 centrino_driver.flags |= CPUFREQ_CONST_LOOPS;
510 503 }
... ... @@ -512,6 +505,13 @@
512 505 if (centrino_cpu_init_acpi(policy)) {
513 506 if (policy->cpu != 0)
514 507 return -ENODEV;
  508 +
  509 + for (i = 0; i < N_IDS; i++)
  510 + if (centrino_verify_cpu_id(cpu, &cpu_ids[i]))
  511 + break;
  512 +
  513 + if (i != N_IDS)
  514 + centrino_cpu[policy->cpu] = &cpu_ids[i];
515 515  
516 516 if (!centrino_cpu[policy->cpu]) {
517 517 dprintk(KERN_INFO PFX "found unsupported CPU with "
arch/i386/kernel/cpu/cpufreq/speedstep-smi.c
... ... @@ -99,7 +99,7 @@
99 99 u32 function = GET_SPEEDSTEP_FREQS;
100 100  
101 101 if (!(ist_info.event & 0xFFFF)) {
102   - dprintk("bug #1422 -- can't read freqs from BIOS\n", result);
  102 + dprintk("bug #1422 -- can't read freqs from BIOS\n");
103 103 return -ENODEV;
104 104 }
105 105  
drivers/cpufreq/cpufreq.c
... ... @@ -627,7 +627,7 @@
627 627  
628 628 ret = kobject_register(&policy->kobj);
629 629 if (ret)
630   - goto err_out;
  630 + goto err_out_driver_exit;
631 631  
632 632 /* set up files for this cpu device */
633 633 drv_attr = cpufreq_driver->attr;
... ... @@ -672,6 +672,10 @@
672 672  
673 673 kobject_unregister(&policy->kobj);
674 674 wait_for_completion(&policy->kobj_unregister);
  675 +
  676 +err_out_driver_exit:
  677 + if (cpufreq_driver->exit)
  678 + cpufreq_driver->exit(policy);
675 679  
676 680 err_out:
677 681 kfree(policy);