/* * Expose some of the kernel scheduler routines * * $Copyright Open Broadcom Corporation$ * * $Id: dhd_linux_sched.c 291086 2011-10-21 01:17:24Z $ */ #include #include #include #include #include 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; }