Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 312736
b: refs/heads/master
c: e8110b6
h: refs/heads/master
v: v3
  • Loading branch information
Rafael J. Wysocki committed Jul 1, 2012
1 parent b50e3d9 commit d22ec5a
Show file tree
Hide file tree
Showing 4 changed files with 9 additions and 7 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: 167cffb646aa4a7f3267b07eae1af16b54bc0e9b
refs/heads/master: e8110b64af8b7cce96d1878276770c76cb9c01d5
6 changes: 4 additions & 2 deletions trunk/drivers/acpi/processor_driver.c
Original file line number Diff line number Diff line change
Expand Up @@ -93,17 +93,19 @@ static const struct acpi_device_id processor_device_ids[] = {
};
MODULE_DEVICE_TABLE(acpi, processor_device_ids);

static SIMPLE_DEV_PM_OPS(acpi_processor_pm,
acpi_processor_suspend, acpi_processor_resume);

static struct acpi_driver acpi_processor_driver = {
.name = "processor",
.class = ACPI_PROCESSOR_CLASS,
.ids = processor_device_ids,
.ops = {
.add = acpi_processor_add,
.remove = acpi_processor_remove,
.suspend = acpi_processor_suspend,
.resume = acpi_processor_resume,
.notify = acpi_processor_notify,
},
.drv.pm = &acpi_processor_pm,
};

#define INSTALL_NOTIFY_HANDLER 1
Expand Down
4 changes: 2 additions & 2 deletions trunk/drivers/acpi/processor_idle.c
Original file line number Diff line number Diff line change
Expand Up @@ -241,7 +241,7 @@ static void acpi_idle_bm_rld_restore(void)
acpi_write_bit_register(ACPI_BITREG_BUS_MASTER_RLD, saved_bm_rld);
}

int acpi_processor_suspend(struct acpi_device * device)
int acpi_processor_suspend(struct device *dev)
{
if (acpi_idle_suspend == 1)
return 0;
Expand All @@ -251,7 +251,7 @@ int acpi_processor_suspend(struct acpi_device * device)
return 0;
}

int acpi_processor_resume(struct acpi_device * device)
int acpi_processor_resume(struct device *dev)
{
if (acpi_idle_suspend == 0)
return 0;
Expand Down
4 changes: 2 additions & 2 deletions trunk/include/acpi/processor.h
Original file line number Diff line number Diff line change
Expand Up @@ -334,8 +334,8 @@ int acpi_processor_cst_has_changed(struct acpi_processor *pr);
int acpi_processor_hotplug(struct acpi_processor *pr);
int acpi_processor_power_exit(struct acpi_processor *pr,
struct acpi_device *device);
int acpi_processor_suspend(struct acpi_device * device);
int acpi_processor_resume(struct acpi_device * device);
int acpi_processor_suspend(struct device *dev);
int acpi_processor_resume(struct device *dev);
extern struct cpuidle_driver acpi_idle_driver;

/* in processor_thermal.c */
Expand Down

0 comments on commit d22ec5a

Please sign in to comment.