aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/base/Makefile
diff options
context:
space:
mode:
authorDmitry Torokhov <dtor@chromium.org>2016-09-29 17:13:14 +0200
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2016-11-10 17:28:16 +0100
commit79543cf2b18ea4a35f8864849d7ad8882ea8a23d (patch)
tree1a13abe673b27f0eaa3267022a0a4a7805fee790 /drivers/base/Makefile
parentdriver core: Add deferred_probe attribute to devices in sysfs (diff)
downloadlinux-dev-79543cf2b18ea4a35f8864849d7ad8882ea8a23d.tar.xz
linux-dev-79543cf2b18ea4a35f8864849d7ad8882ea8a23d.zip
driver-core: add test module for asynchronous probing
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 <dtor@chromium.org> Reviewed-by: Olof Johansson <olofj@chromium.org> Signed-off-by: Guenter Roeck <groeck@chromium.org> Signed-off-by: Thierry Escande <thierry.escande@collabora.com> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'drivers/base/Makefile')
-rw-r--r--drivers/base/Makefile2
1 files changed, 2 insertions, 0 deletions
diff --git a/drivers/base/Makefile b/drivers/base/Makefile
index 2609ba20b396..f2816f6ff76a 100644
--- a/drivers/base/Makefile
+++ b/drivers/base/Makefile
@@ -24,5 +24,7 @@ obj-$(CONFIG_PINCTRL) += pinctrl.o
obj-$(CONFIG_DEV_COREDUMP) += devcoredump.o
obj-$(CONFIG_GENERIC_MSI_IRQ_DOMAIN) += platform-msi.o
+obj-y += test/
+
ccflags-$(CONFIG_DEBUG_DRIVER) := -DDEBUG