blob: 4a84d378c38dad4b89ac0f77e773a4f7d27eab7d (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
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;
}
|