Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 199273
b: refs/heads/master
c: 541adf7
h: refs/heads/master
i:
  199271: 03b8a92
v: v3
  • Loading branch information
Len Brown committed May 28, 2010
1 parent 1f455eb commit 47cb50e
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 6 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 752138df0dc2daaae09379c754caeb08c97905dc
refs/heads/master: 541adf7cd937b3895c7645406a9b060504df453b
11 changes: 6 additions & 5 deletions trunk/drivers/acpi/processor_driver.c
Original file line number Diff line number Diff line change
Expand Up @@ -616,7 +616,8 @@ static int __cpuinit acpi_processor_add(struct acpi_device *device)
acpi_processor_get_limit_info(pr);


acpi_processor_power_init(pr, device);
if (cpuidle_get_driver() == &acpi_idle_driver)
acpi_processor_power_init(pr, device);

pr->cdev = thermal_cooling_device_register("Processor", device,
&processor_cooling_ops);
Expand Down Expand Up @@ -920,9 +921,10 @@ static int __init acpi_processor_init(void)
if (!acpi_processor_dir)
return -ENOMEM;
#endif
result = cpuidle_register_driver(&acpi_idle_driver);
if (result < 0)
goto out_proc;

if (!cpuidle_register_driver(&acpi_idle_driver))
printk(KERN_DEBUG "ACPI: %s registered with cpuidle\n",
acpi_idle_driver.name);

result = acpi_bus_register_driver(&acpi_processor_driver);
if (result < 0)
Expand All @@ -941,7 +943,6 @@ static int __init acpi_processor_init(void)
out_cpuidle:
cpuidle_unregister_driver(&acpi_idle_driver);

out_proc:
#ifdef CONFIG_ACPI_PROCFS
remove_proc_entry(ACPI_PROCESSOR_CLASS, acpi_root_dir);
#endif
Expand Down

0 comments on commit 47cb50e

Please sign in to comment.