summaryrefslogtreecommitdiffstats
path: root/libcutils
diff options
context:
space:
mode:
authorElliott Hughes <enh@google.com>2014-07-11 20:57:03 -0700
committerElliott Hughes <enh@google.com>2014-07-11 20:58:55 -0700
commite07d77e422b328f0b7e8a542e99989dab8c95dac (patch)
tree11e2ac16b0de45f0c42cd72f6a7f9d640e444b98 /libcutils
parent923e740879c871e0c3806f7c6df77093e715bb38 (diff)
downloadsystem_core-e07d77e422b328f0b7e8a542e99989dab8c95dac.zip
system_core-e07d77e422b328f0b7e8a542e99989dab8c95dac.tar.gz
system_core-e07d77e422b328f0b7e8a542e99989dab8c95dac.tar.bz2
Use <sys/prctl.h> instead of <linux/prctl.h>.
Change-Id: I708da00e36a9da8be9184c451453774be6b78c06
Diffstat (limited to 'libcutils')
-rw-r--r--libcutils/sched_policy.c12
1 files changed, 2 insertions, 10 deletions
diff --git a/libcutils/sched_policy.c b/libcutils/sched_policy.c
index fa0792f..f8ffb1d 100644
--- a/libcutils/sched_policy.c
+++ b/libcutils/sched_policy.c
@@ -39,17 +39,9 @@ static inline SchedPolicy _policy(SchedPolicy p)
#if defined(HAVE_ANDROID_OS) && defined(HAVE_SCHED_H) && defined(HAVE_PTHREADS)
-#include <linux/prctl.h>
-#include <sched.h>
#include <pthread.h>
-
-#ifndef SCHED_NORMAL
- #define SCHED_NORMAL 0
-#endif
-
-#ifndef SCHED_BATCH
- #define SCHED_BATCH 3
-#endif
+#include <sched.h>
+#include <sys/prctl.h>
#define POLICY_DEBUG 0