From: Shaohua Li Date: Tue, 12 May 2009 20:37:57 +0000 (-0700) Subject: driver core: synchronize device shutdown X-Git-Tag: v2.6.31-rc1~305^2~51 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=401097ea4b89846d66ac78f7f108d49c2e922d9c;p=profile%2Fivi%2Fkernel-adaptation-intel-automotive.git driver core: synchronize device shutdown A patch series to make .shutdown execute asynchronously. Some drivers's shutdown can take a lot of time. The patches can help save some shutdown time. The patches use Arjan's async API. This patch: synchronize all tasks submitted by .shutdown Signed-off-by: Shaohua Li Cc: Arjan van de Ven Cc: Dmitry Torokhov Cc: James Bottomley Signed-off-by: Andrew Morton Signed-off-by: Greg Kroah-Hartman --- diff --git a/drivers/base/core.c b/drivers/base/core.c index 1977d4b..7e8576d 100644 --- a/drivers/base/core.c +++ b/drivers/base/core.c @@ -22,6 +22,7 @@ #include #include #include +#include #include "base.h" #include "power/power.h" @@ -1665,4 +1666,5 @@ void device_shutdown(void) kobject_put(sysfs_dev_char_kobj); kobject_put(sysfs_dev_block_kobj); kobject_put(dev_kobj); + async_synchronize_full(); }