summaryrefslogtreecommitdiff
path: root/drivers/net/wireless/bcmdhd.1.88.45.x.cn/dhd_linux_sched.c
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/net/wireless/bcmdhd.1.88.45.x.cn/dhd_linux_sched.c')
-rwxr-xr-xdrivers/net/wireless/bcmdhd.1.88.45.x.cn/dhd_linux_sched.c21
1 files changed, 21 insertions, 0 deletions
diff --git a/drivers/net/wireless/bcmdhd.1.88.45.x.cn/dhd_linux_sched.c b/drivers/net/wireless/bcmdhd.1.88.45.x.cn/dhd_linux_sched.c
new file mode 100755
index 00000000..4a84d378
--- /dev/null
+++ b/drivers/net/wireless/bcmdhd.1.88.45.x.cn/dhd_linux_sched.c
@@ -0,0 +1,21 @@
+/*
+ * Expose some of the kernel scheduler routines
+ *
+ * $Copyright Open Broadcom Corporation$
+ *
+ * $Id: dhd_linux_sched.c 291086 2011-10-21 01:17:24Z $
+ */
+#include <linux/kernel.h>
+#include <linux/module.h>
+#include <linux/sched.h>
+#include <typedefs.h>
+#include <linuxver.h>
+
+int setScheduler(struct task_struct *p, int policy, struct sched_param *param)
+{
+ int rc = 0;
+#if (LINUX_VERSION_CODE >= KERNEL_VERSION(2, 6, 0))
+ rc = sched_setscheduler(p, policy, param);
+#endif /* LinuxVer */
+ return rc;
+}