Skip to contentSkip to conversation

synchronize device shutdown

PATCH New Shaohua Li 1 participant 1 message Jan 12, 2009 Driver core

lore
Share & tools
lore

Shaohua Li

author
#0 lore raw

PATCH 1/3 synchronize device shutdown

synchronize all tasks submitted by .shutdown

---
 drivers/base/core.c |    2 ++
 1 file changed, 2 insertions(+)
drivers/base/core.c +2 -0
Index: linux/drivers/base/core.c
===================================================================
@@ -22,6 +22,7 @@
 #include <linux/kallsyms.h>
 #include <linux/semaphore.h>
 #include <linux/mutex.h>
+#include <linux/async.h>
 
 #include "base.h"
 #include "power/power.h"
@@ -1618,4 +1619,5 @@ void device_shutdown(void)
 	kobject_put(sysfs_dev_char_kobj);
 	kobject_put(sysfs_dev_block_kobj);
 	kobject_put(dev_kobj);
+	async_synchronize_full();
 }