|
@@ -21,6 +21,7 @@
|
|
|
#include <linux/vmalloc.h>
|
|
|
#include <linux/export.h>
|
|
|
#include <linux/jiffies.h>
|
|
|
+#include <linux/pm_runtime.h>
|
|
|
|
|
|
#include "net-sysfs.h"
|
|
|
|
|
@@ -1257,6 +1258,8 @@ void netdev_unregister_kobject(struct net_device * net)
|
|
|
|
|
|
remove_queue_kobjects(net);
|
|
|
|
|
|
+ pm_runtime_set_memalloc_noio(dev, false);
|
|
|
+
|
|
|
device_del(dev);
|
|
|
}
|
|
|
|
|
@@ -1301,6 +1304,8 @@ int netdev_register_kobject(struct net_device *net)
|
|
|
return error;
|
|
|
}
|
|
|
|
|
|
+ pm_runtime_set_memalloc_noio(dev, true);
|
|
|
+
|
|
|
return error;
|
|
|
}
|
|
|
|