[lkml]   [2009]   [Aug]   [12]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
Messages in this thread
    Patch in this message
    Subject[RFC][PATCH 3/3] PM: Asynchronous suspend and resume for ACPI battery
    Allow the ACPI battery device to be resumed and suspended

    This only means that the driver's suspend and resume callbacks may
    be executed in parallel with the callbacks of devices that don't
    directly depend on the battery device (i.e. that are not its parent
    or children).

    Index: linux-2.6/drivers/acpi/battery.c
    --- linux-2.6.orig/drivers/acpi/battery.c
    +++ linux-2.6/drivers/acpi/battery.c
    @@ -837,6 +837,7 @@ static int acpi_battery_add(struct acpi_
    printk(KERN_INFO PREFIX "%s Slot [%s] (battery %s)\n",
    ACPI_BATTERY_DEVICE_NAME, acpi_device_bid(device),
    device->status.battery_present ? "present" : "absent");
    + device_enable_async_suspend(&device->dev, true);
    } else {

     \ /
      Last update: 2009-08-12 22:25    [W:3.174 / U:0.200 seconds]
    ©2003-2017 Jasper Spaans. hosted at Digital OceanAdvertise on this site