summaryrefslogtreecommitdiffstats
path: root/libcutils/sched_policy.c
diff options
context:
space:
mode:
authorElliott Hughes <enh@google.com>2014-08-18 19:34:23 +0000
committerAndroid Git Automerger <android-git-automerger@android.com>2014-08-18 19:34:23 +0000
commit10cce72c4bbc8bb8e6466b5511e178321862658a (patch)
treef7f2c135302c5528bd45be0fe79610e5cdc91d15 /libcutils/sched_policy.c
parent932c3a1d0507da5ff8d7183fa5a795bce0a86c19 (diff)
parent3859029a48aa78150fa61eb4988214f8632b33ce (diff)
downloadsystem_core-10cce72c4bbc8bb8e6466b5511e178321862658a.zip
system_core-10cce72c4bbc8bb8e6466b5511e178321862658a.tar.gz
system_core-10cce72c4bbc8bb8e6466b5511e178321862658a.tar.bz2
am 3859029a: am 7fb0ee0c: Merge "Remove androidGetTid."
* commit '3859029a48aa78150fa61eb4988214f8632b33ce': Remove androidGetTid.
Diffstat (limited to 'libcutils/sched_policy.c')
-rw-r--r--libcutils/sched_policy.c4
1 files changed, 0 insertions, 4 deletions
diff --git a/libcutils/sched_policy.c b/libcutils/sched_policy.c
index 2acc3c3..d3cedd4 100644
--- a/libcutils/sched_policy.c
+++ b/libcutils/sched_policy.c
@@ -221,11 +221,9 @@ static int getSchedulerGroup(int tid, char* buf, size_t bufLen)
int get_sched_policy(int tid, SchedPolicy *policy)
{
-#ifdef HAVE_GETTID
if (tid == 0) {
tid = gettid();
}
-#endif
pthread_once(&the_once, __initialize);
if (__sys_supports_schedgroups) {
@@ -260,11 +258,9 @@ int get_sched_policy(int tid, SchedPolicy *policy)
int set_sched_policy(int tid, SchedPolicy policy)
{
-#ifdef HAVE_GETTID
if (tid == 0) {
tid = gettid();
}
-#endif
policy = _policy(policy);
pthread_once(&the_once, __initialize);