mirror of
https://github.com/torvalds/linux.git
synced 2026-11-26 16:33:17 +00:00
This test module tries to test asynchronous driver probing by having a driver that sleeps for an extended period of time (5 secs) in its probe() method. It measures the time needed to register this driver (with device already registered) and a new device (with driver already registered). The module will fail to load if the time spent in register call is more than half the probing sleep time. As a sanity check the driver will then try to synchronously register driver and device and fail if registration takes less than half of the probing sleep time. Signed-off-by: Dmitry Torokhov <[email protected]> Reviewed-by: Olof Johansson <[email protected]> Signed-off-by: Guenter Roeck <[email protected]> Signed-off-by: Thierry Escande <[email protected]> Signed-off-by: Greg Kroah-Hartman <[email protected]>
10 lines
314 B
Plaintext
10 lines
314 B
Plaintext
config TEST_ASYNC_DRIVER_PROBE
|
|
tristate "Build kernel module to test asynchronous driver probing"
|
|
depends on m
|
|
help
|
|
Enabling this option produces a kernel module that allows
|
|
testing asynchronous driver probing by the device core.
|
|
The module name will be test_async_driver_probe.ko
|
|
|
|
If unsure say N.
|