This is needed by rtlwifi.
The function signature of __create_workqueue changed in kernel 2.6.28,
so two different defines are needed.
Signed-off-by: Hauke Mehrtens <hauke@hauke-m.de>
int pci_wake_from_d3(struct pci_dev *dev, bool enable);
+#define alloc_workqueue(name, flags, max_active) __create_workqueue(name, flags, max_active)
+
#endif /* (LINUX_VERSION_CODE < KERNEL_VERSION(2,6,28)) */
#endif /* LINUX_26_28_COMPAT_H */
static inline __attribute__ ((format (printf, 1, 2)))
int no_printk(const char *s, ...) { return 0; }
+#ifndef alloc_workqueue
+#define alloc_workqueue(name, flags, max_active) __create_workqueue(name, flags, max_active, 0)
+#endif
+
#endif /* (LINUX_VERSION_CODE < KERNEL_VERSION(2,6,36)) */
#endif /* LINUX_26_36_COMPAT_H */