summaryrefslogtreecommitdiffstats
path: root/include
diff options
context:
space:
mode:
authorTim Murray <timmurray@google.com>2015-06-08 14:56:29 -0700
committerTim Murray <timmurray@google.com>2015-06-11 18:35:46 -0700
commitb769c8d24fd7be96f8968aa4c80b669525b930d3 (patch)
tree9dd58ff700e0c5f437aa55cb79ef04067f5edd0b /include
parent350926ef2f13f75335b32e9904dc0b46c01ab1fe (diff)
downloadsystem_core-b769c8d24fd7be96f8968aa4c80b669525b930d3.zip
system_core-b769c8d24fd7be96f8968aa4c80b669525b930d3.tar.gz
system_core-b769c8d24fd7be96f8968aa4c80b669525b930d3.tar.bz2
add cpuset support to libcutils
bug 21782794 Change-Id: I249531754fb29442dc3c7434d77dbb103f4220a7
Diffstat (limited to 'include')
-rw-r--r--include/cutils/sched_policy.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/include/cutils/sched_policy.h b/include/cutils/sched_policy.h
index ba84ce3..6a8d570 100644
--- a/include/cutils/sched_policy.h
+++ b/include/cutils/sched_policy.h
@@ -34,6 +34,8 @@ typedef enum {
SP_SYSTEM_DEFAULT = SP_FOREGROUND,
} SchedPolicy;
+extern int set_cpuset_policy(int tid, SchedPolicy policy);
+
/* Assign thread tid to the cgroup associated with the specified policy.
* If the thread is a thread group leader, that is it's gettid() == getpid(),
* then the other threads in the same thread group are _not_ affected.