diff options
author | Cornelia Huck <cornelia.huck@de.ibm.com> | 2007-02-05 19:15:25 -0500 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@suse.de> | 2007-04-27 13:57:28 -0400 |
commit | 21c7f30b1d3f8a3de3128478daca3ce203fc8733 (patch) | |
tree | ff84247ba68f82906182a214273dd330c6d1970f /include/linux/device.h | |
parent | 460f7e9a1bde2c74f060f7ce0a308dab4be6a56b (diff) |
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>
Diffstat (limited to 'include/linux/device.h')
-rw-r--r-- | include/linux/device.h | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/include/linux/device.h b/include/linux/device.h index 7f63d4de5c4d..eb1fff0b1d2a 100644 --- a/include/linux/device.h +++ b/include/linux/device.h | |||
@@ -80,6 +80,7 @@ struct bus_type { | |||
80 | int (*resume)(struct device * dev); | 80 | int (*resume)(struct device * dev); |
81 | 81 | ||
82 | unsigned int drivers_autoprobe:1; | 82 | unsigned int drivers_autoprobe:1; |
83 | unsigned int multithread_probe:1; | ||
83 | }; | 84 | }; |
84 | 85 | ||
85 | extern int __must_check bus_register(struct bus_type * bus); | 86 | extern int __must_check bus_register(struct bus_type * bus); |
@@ -139,8 +140,6 @@ struct device_driver { | |||
139 | void (*shutdown) (struct device * dev); | 140 | void (*shutdown) (struct device * dev); |
140 | int (*suspend) (struct device * dev, pm_message_t state); | 141 | int (*suspend) (struct device * dev, pm_message_t state); |
141 | int (*resume) (struct device * dev); | 142 | int (*resume) (struct device * dev); |
142 | |||
143 | unsigned int multithread_probe:1; | ||
144 | }; | 143 | }; |
145 | 144 | ||
146 | 145 | ||