Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux
1
fork

Configure Feed

Select the types of activity you want to include in your feed.

usb: ehci-pci: Set PROBE_PREFER_ASYNCHRONOUS

This driver often takes on the order of 8ms to start, but every little
bit counts. It shouldn't have many cross-device dependencies to
race with, nor racy access to shared state with other drivers, so this
should be a relatively low risk change.

This driver was pinpointed as part of a survey of top slowest initcalls
(i.e., are built in, and probing synchronously) on a lab of ChromeOS
systems.

Signed-off-by: Brian Norris <briannorris@chromium.org>
Acked-by: Alan Stern <stern@rowland.harvard.edu>
Link: https://lore.kernel.org/r/20221028184507.v2.1.I9a5353f81d1509f85f3a04f0cdc9099f6fe60811@changeid
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>

authored by

Brian Norris and committed by
Greg Kroah-Hartman
ee983463 4567d1a9

+4 -3
+4 -3
drivers/usb/host/ehci-pci.c
··· 411 411 .remove = ehci_pci_remove, 412 412 .shutdown = usb_hcd_pci_shutdown, 413 413 414 - #ifdef CONFIG_PM 415 414 .driver = { 416 - .pm = &usb_hcd_pci_pm_ops 417 - }, 415 + #ifdef CONFIG_PM 416 + .pm = &usb_hcd_pci_pm_ops, 418 417 #endif 418 + .probe_type = PROBE_PREFER_ASYNCHRONOUS, 419 + }, 419 420 }; 420 421 421 422 static int __init ehci_pci_init(void)