diff options
author | San Mehat <san@google.com> | 2009-09-14 16:05:24 -0700 |
---|---|---|
committer | San Mehat <san@google.com> | 2009-09-14 16:05:51 -0700 |
commit | 3cd5b66ba05cffe38bfa4e2da9b93292ba0b073a (patch) | |
tree | f10ba21c49ef181a45b57513749ff44ff3e846ef /libcutils/sched_policy.c | |
parent | 493dad966305a7fb555addd367532dd2af275a27 (diff) | |
download | system_core-3cd5b66ba05cffe38bfa4e2da9b93292ba0b073a.zip system_core-3cd5b66ba05cffe38bfa4e2da9b93292ba0b073a.tar.gz system_core-3cd5b66ba05cffe38bfa4e2da9b93292ba0b073a.tar.bz2 |
libcutils: Dont include kernel header + add defines
Signed-off-by: San Mehat <san@google.com>
Diffstat (limited to 'libcutils/sched_policy.c')
-rw-r--r-- | libcutils/sched_policy.c | 9 |
1 files changed, 8 insertions, 1 deletions
diff --git a/libcutils/sched_policy.c b/libcutils/sched_policy.c index d363644..8c7d611 100644 --- a/libcutils/sched_policy.c +++ b/libcutils/sched_policy.c @@ -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; |