• Arjan van de Ven's avatar
    ACPI: battery: asynchronous init · 0f66af53
    Arjan van de Ven authored
    The battery driver tends to take quite some time to initialize
    (100ms-300ms is quite typical).
    This patch initializes the batter driver asynchronously, so that other
    things in the kernel can initialize in parallel to this 300 msec.
    
    As part of this, the battery driver had to move to the back
    of the ACPI init order (hence the Makefile change).
    Without this move, the next ACPI driver would just block
    on the ACPI/devicee layer semaphores until the battery driver was
    done anyway, not gaining any boot time.
    Signed-off-by: default avatarArjan van de Ven <arjan@linux.intel.com>
    Signed-off-by: default avatarLen Brown <len.brown@intel.com>
    0f66af53
battery.c 25.9 KB