diff options
author | San Mehat | 2009-09-14 18:05:24 -0500 |
---|---|---|
committer | San Mehat | 2009-09-14 18:05:51 -0500 |
commit | 3cd5b66ba05cffe38bfa4e2da9b93292ba0b073a (patch) | |
tree | f10ba21c49ef181a45b57513749ff44ff3e846ef | |
parent | 493dad966305a7fb555addd367532dd2af275a27 (diff) | |
download | platform-system-core-3cd5b66ba05cffe38bfa4e2da9b93292ba0b073a.tar.gz platform-system-core-3cd5b66ba05cffe38bfa4e2da9b93292ba0b073a.tar.xz platform-system-core-3cd5b66ba05cffe38bfa4e2da9b93292ba0b073a.zip |
libcutils: Dont include kernel header + add defines
Signed-off-by: San Mehat <san@google.com>
-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 d363644f9..8c7d611fa 100644 --- a/libcutils/sched_policy.c +++ b/libcutils/sched_policy.c | |||
@@ -22,10 +22,17 @@ | |||
22 | #include <errno.h> | 22 | #include <errno.h> |
23 | #include <fcntl.h> | 23 | #include <fcntl.h> |
24 | #include <sched.h> | 24 | #include <sched.h> |
25 | #include <linux/sched.h> | ||
26 | 25 | ||
27 | #include <cutils/sched_policy.h> | 26 | #include <cutils/sched_policy.h> |
28 | 27 | ||
28 | #ifndef SCHED_NORMAL | ||
29 | #define SCHED_NORMAL 0 | ||
30 | #endif | ||
31 | |||
32 | #ifndef SCHED_BATCH | ||
33 | #define SCHED_BATCH 3 | ||
34 | #endif | ||
35 | |||
29 | static int add_tid_to_cgroup(int tid, const char *grp_name) | 36 | static int add_tid_to_cgroup(int tid, const char *grp_name) |
30 | { | 37 | { |
31 | int fd; | 38 | int fd; |