]> git.baikalelectronics.ru Git - kernel.git/commit
driver core: per-subsystem multithreaded probing
authorCornelia Huck <cornelia.huck@de.ibm.com>
Tue, 6 Feb 2007 00:15:25 +0000 (16:15 -0800)
committerGreg Kroah-Hartman <gregkh@suse.de>
Fri, 27 Apr 2007 17:57:28 +0000 (10:57 -0700)
commitcdb4ac6a63741762ce8528bda7363761e5300773
treeff84247ba68f82906182a214273dd330c6d1970f
parentdac3ca96dfa7e2127ee22682ce0704b2ff57dbe7
driver core: per-subsystem multithreaded probing

Make multithreaded probing work per subsystem instead of per driver.

It doesn't make much sense to probe the same device for multiple drivers in
parallel (after all, only one driver can bind to the device).  Instead, create
a probing thread for each device that probes the drivers one after another.
Also make the decision to use multi-threaded probe per bus instead of per
device and adapt the pci code.

Signed-off-by: Cornelia Huck <cornelia.huck@de.ibm.com>
Cc: Benjamin Herrenschmidt <benh@kernel.crashing.org>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
drivers/base/dd.c
drivers/pci/pci-driver.c
include/linux/device.h
include/linux/pci.h