summaryrefslogtreecommitdiff
path: root/libs/rs/rsContext.cpp
diff options
context:
space:
mode:
author Glenn Kasten <gkasten@google.com> 2012-03-05 17:19:32 -0800
committer Glenn Kasten <gkasten@google.com> 2012-03-05 17:24:39 -0800
commit583786175ecc2992ecb7e911e896ec705983d944 (patch)
tree8a455a53110aa111e8751f49729f7c75eaf58a85 /libs/rs/rsContext.cpp
parentc8a0a159949a8b975b7e48a66f7034e2748f367d (diff)
Remove references to sched_policy.h in RS
As part of scheduling policy cleanup, removing some references to sched_policy.h and its APIs. Activity manager should be responsible for configuring scheduling policy, rather than leaving it up to each app. Change-Id: Iffe972799bf3fde090b1efdd3abce5141e4d261e
Diffstat (limited to 'libs/rs/rsContext.cpp')
-rw-r--r--libs/rs/rsContext.cpp11
1 files changed, 0 insertions, 11 deletions
diff --git a/libs/rs/rsContext.cpp b/libs/rs/rsContext.cpp
index 95ac76e84fd9..0f3cea78c308 100644
--- a/libs/rs/rsContext.cpp
+++ b/libs/rs/rsContext.cpp
@@ -26,7 +26,6 @@
#include <cutils/properties.h>
-#include <cutils/sched_policy.h>
#include <sys/syscall.h>
#include <string.h>
@@ -354,17 +353,7 @@ void Context::setPriority(int32_t p) {
// This is probably not what we want for something the user is actively
// looking at.
mThreadPriority = p;
-#if 0
- SchedPolicy pol = SP_FOREGROUND;
- if (p > 0) {
- pol = SP_BACKGROUND;
- }
- if (!set_sched_policy(mNativeThreadId, pol)) {
- // success; reset the priority as well
- }
-#else
setpriority(PRIO_PROCESS, mNativeThreadId, p);
-#endif
mHal.funcs.setPriority(this, mThreadPriority);
}