Merge 3.3-rc2 into the driver-core-next branch.
authorGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Thu, 2 Feb 2012 19:24:44 +0000 (11:24 -0800)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Thu, 2 Feb 2012 19:24:44 +0000 (11:24 -0800)
This was done to resolve a merge and build problem with the
drivers/acpi/processor_driver.c file.

Reported-by: Stephen Rothwell <sfr@canb.auug.org.au>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>

1  2 
arch/x86/Kconfig
arch/x86/include/asm/cpufeature.h
drivers/acpi/processor_driver.c
drivers/base/bus.c
drivers/idle/intel_idle.c
fs/sysfs/inode.c
include/acpi/processor.h
include/linux/device.h
include/linux/mod_devicetable.h
scripts/mod/file2alias.c

Simple merge
Simple merge
@@@ -495,40 -579,23 +579,33 @@@ static int __cpuinit acpi_processor_add
                goto err_free_cpumask;
        }
  
 -      /*
 -       * Do not start hotplugged CPUs now, but when they
 -       * are onlined the first time
 -       */
 -      if (pr->flags.need_hotplug_init)
 -              return 0;
 +#ifdef CONFIG_CPU_FREQ
 +      acpi_processor_ppc_has_changed(pr, 0);
 +      acpi_processor_load_module(pr);
 +#endif
 +      acpi_processor_get_throttling_info(pr);
 +      acpi_processor_get_limit_info(pr);
 +
 +      if (!cpuidle_get_driver() || cpuidle_get_driver() == &acpi_idle_driver)
 +              acpi_processor_power_init(pr, device);
 +
 +      pr->cdev = thermal_cooling_device_register("Processor", device,
 +                                              &processor_cooling_ops);
 +      if (IS_ERR(pr->cdev)) {
 +              result = PTR_ERR(pr->cdev);
-               goto err_power_exit;
++              goto err_remove_sysfs;
 +      }
  
-       dev_dbg(&device->dev, "registered as cooling_device%d\n",
-                pr->cdev->id);
+       /*
+        * Do not start hotplugged CPUs now, but when they
+        * are onlined the first time
+        */
+       if (pr->flags.need_hotplug_init)
+               return 0;
  
-       result = sysfs_create_link(&device->dev.kobj,
-                                  &pr->cdev->device.kobj,
-                                  "thermal_cooling");
-       if (result) {
-               printk(KERN_ERR PREFIX "Create sysfs link\n");
-               goto err_thermal_unregister;
-       }
-       result = sysfs_create_link(&pr->cdev->device.kobj,
-                                  &device->dev.kobj,
-                                  "device");
-       if (result) {
-               printk(KERN_ERR PREFIX "Create sysfs link\n");
+       result = acpi_processor_start(pr);
+       if (result)
                goto err_remove_sysfs;
-       }
  
        return 0;
  
Simple merge
Simple merge
Simple merge
Simple merge
Simple merge
Simple merge
Simple merge