• A
    USB: change hub initialization sleeps to delayed_work · 8520f380
    Alan Stern 提交于
    This patch (as1137) changes the hub_activate() routine, replacing the
    power-power-up and debounce delays with delayed_work calls.  The idea
    is that on systems where the USB stack is compiled into the kernel
    rather than built as modules, these delays will no longer block the
    boot thread.  At least 100 ms is saved for each root hub, which can
    add up to a significant savings in total boot time.
    
    Arjan van de Ven was very pleased to see that this shaved 700 ms off
    his computer's boot time.  Since his total boot time is on the order
    of two seconds, the improvement is considerable.
    Signed-off-by: NAlan Stern <stern@rowland.harvard.edu>
    Tested-by: NArjan van de Ven <arjan@infradead.org>
    Signed-off-by: NGreg Kroah-Hartman <gregkh@suse.de>
    8520f380
hub.c 98.1 KB