2 * Expose some of the kernel scheduler routines
4 * $Copyright Open Broadcom Corporation$
6 * $Id: dhd_linux_sched.c 457570 2014-02-23 13:54:46Z $
8 #include <linux/kernel.h>
9 #include <linux/module.h>
10 #include <linux/sched.h>
14 int setScheduler(struct task_struct *p, int policy, struct sched_param *param)
17 #if (LINUX_VERSION_CODE >= KERNEL_VERSION(2, 6, 0))
18 rc = sched_setscheduler(p, policy, param);
23 int get_scheduler_policy(struct task_struct *p)
25 int rc = SCHED_NORMAL;
26 #if (LINUX_VERSION_CODE >= KERNEL_VERSION(2, 6, 0))