libcutils: Dont include kernel header + add defines
Signed-off-by: San Mehat <san@google.com>
This commit is contained in:
parent
493dad9663
commit
3cd5b66ba0
|
@ -22,10 +22,17 @@
|
|||
#include <errno.h>
|
||||
#include <fcntl.h>
|
||||
#include <sched.h>
|
||||
#include <linux/sched.h>
|
||||
|
||||
#include <cutils/sched_policy.h>
|
||||
|
||||
#ifndef SCHED_NORMAL
|
||||
#define SCHED_NORMAL 0
|
||||
#endif
|
||||
|
||||
#ifndef SCHED_BATCH
|
||||
#define SCHED_BATCH 3
|
||||
#endif
|
||||
|
||||
static int add_tid_to_cgroup(int tid, const char *grp_name)
|
||||
{
|
||||
int fd;
|
||||
|
|
Loading…
Reference in New Issue